Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix a bug in the spider excluder. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
8583ca38eb285560e1e7d64094c5b0bd |
| User & Date: | drh 2016-05-31 01:57:03.188 |
Context
|
2016-06-05
| ||
| 17:02 | Fix typo in sqlite3 command documentation ... (check-in: fba7d9e452 user: andygoth tags: trunk) | |
|
2016-05-31
| ||
| 08:17 | merge from trunk with a few tweaks for merge conflicts ... (check-in: 598b58a5ee user: sdr tags: winsymlink) | |
| 01:57 | Fix a bug in the spider excluder. ... (check-in: 8583ca38eb user: drh tags: trunk) | |
| 01:16 | Improved handling of exclude_robots(). Add the "isrobot" query parameter for testing. ... (check-in: abcd5df267 user: drh tags: trunk) | |
Changes
Changes to src/captcha.c.
| ︙ | ︙ | |||
598 599 600 601 602 603 604 |
if( captcha_is_correct() ){
cgi_set_cookie(zCookieName, "1", login_cookie_path(), 8*3600);
return 0;
}
/* This appears to be a spider. Offer the captcha */
style_header("Verification");
| | | 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
if( captcha_is_correct() ){
cgi_set_cookie(zCookieName, "1", login_cookie_path(), 8*3600);
return 0;
}
/* This appears to be a spider. Offer the captcha */
style_header("Verification");
@ <form method='POST' action='%s(g.zPath)'>
cgi_query_parameters_to_hidden();
@ <p>Please demonstrate that you are human, not a spider or robot</p>
captcha_generate(1);
@ </form>
style_footer();
return 1;
}
|
Changes to src/style.c.
| ︙ | ︙ | |||
199 200 201 202 203 204 205 |
@ gebi("a%d(i+1)").href="%s(aHref[i])";
}
}
for(i=0; i<nFormAction; i++){
@ gebi("form%d(i+1)").action="%s(aFormAction[i])";
}
@ }
| | | 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
@ gebi("a%d(i+1)").href="%s(aHref[i])";
}
}
for(i=0; i<nFormAction; i++){
@ gebi("form%d(i+1)").action="%s(aFormAction[i])";
}
@ }
if( sqlite3_strglob("*Opera Mini/[1-9]*", PD("HTTP_USER_AGENT",""))==0 ){
/* Special case for Opera Mini, which executes JS server-side */
@ var isOperaMini = Object.prototype.toString.call(window.operamini)
@ === "[object OperaMini]";
@ if( isOperaMini ){
@ setTimeout("setAllHrefs();",%d(nDelay));
@ }
}else if( db_get_boolean("auto-hyperlink-ishuman",0) && g.isHuman ){
|
| ︙ | ︙ |