Fossil SCM

Fix a typo in a comment.

drh 2012-10-30 10:23 trunk
Commit 1167d7b14569c61ee78e9e1de2d4b094e6ff10c0
1 file changed +1 -1
+1 -1
--- src/login.c
+++ src/login.c
@@ -385,11 +385,11 @@
385385
** is a manually operated browser or a bot. When in doubt, assume a bot.
386386
** Return true if we believe the agent is a real person.
387387
*/
388388
static int isHuman(const char *zAgent){
389389
int i;
390
- if( zAgent==0 ) return 0; /* If not UserAgent, then probably a bot */
390
+ if( zAgent==0 ) return 0; /* If no UserAgent, then probably a bot */
391391
for(i=0; zAgent[i]; i++){
392392
if( prefix_match("bot", zAgent+i) ) return 0;
393393
if( prefix_match("spider", zAgent+i) ) return 0;
394394
if( prefix_match("crawl", zAgent+i) ) return 0;
395395
/* If a URI appears in the User-Agent, it is probably a bot */
396396
--- src/login.c
+++ src/login.c
@@ -385,11 +385,11 @@
385 ** is a manually operated browser or a bot. When in doubt, assume a bot.
386 ** Return true if we believe the agent is a real person.
387 */
388 static int isHuman(const char *zAgent){
389 int i;
390 if( zAgent==0 ) return 0; /* If not UserAgent, then probably a bot */
391 for(i=0; zAgent[i]; i++){
392 if( prefix_match("bot", zAgent+i) ) return 0;
393 if( prefix_match("spider", zAgent+i) ) return 0;
394 if( prefix_match("crawl", zAgent+i) ) return 0;
395 /* If a URI appears in the User-Agent, it is probably a bot */
396
--- src/login.c
+++ src/login.c
@@ -385,11 +385,11 @@
385 ** is a manually operated browser or a bot. When in doubt, assume a bot.
386 ** Return true if we believe the agent is a real person.
387 */
388 static int isHuman(const char *zAgent){
389 int i;
390 if( zAgent==0 ) return 0; /* If no UserAgent, then probably a bot */
391 for(i=0; zAgent[i]; i++){
392 if( prefix_match("bot", zAgent+i) ) return 0;
393 if( prefix_match("spider", zAgent+i) ) return 0;
394 if( prefix_match("crawl", zAgent+i) ) return 0;
395 /* If a URI appears in the User-Agent, it is probably a bot */
396

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button