Fossil

Check-in [77cd6e0d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Assume that the NetSurf browser is operated by a human.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:77cd6e0dfb252635e3f43d656829398a34277145
User & Date: drh 2012-11-27 00:23:35
Context
2012-11-27
09:42
blob_to_utf8_no_bom(): the starts_with_utf16(le|be)_bom calls were swapped. check-in: d27cddf1 user: jan.nijtmans tags: trunk
09:10
merge trunk check-in: 43caa737 user: jan.nijtmans tags: convert_before_commit_v2
06:31
Support building with zlib in the compat directory, phase 1. check-in: d17f4473 user: mistachkin tags: zlib
00:23
Assume that the NetSurf browser is operated by a human. check-in: 77cd6e0d user: drh tags: trunk
2012-11-26
22:51
Merge byte-order-mark handling enhancements to trunk. check-in: 9b800ee4 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/login.c.

402
403
404
405
406
407
408

409
410
411
412
413
414
415
    if( strglob("*(compatible;?MSIE?[1-9]*", zAgent) ) return 1;
    if( strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent) ) return 1;
    return 0;
  }
  if( memcmp(zAgent, "Opera/", 6)==0 ) return 1;
  if( memcmp(zAgent, "Safari/", 7)==0 ) return 1;
  if( memcmp(zAgent, "Lynx/", 5)==0 ) return 1;

  return 0;
}

/*
** COMMAND: test-ishuman
**
** Read lines of text from standard input.  Interpret each line of text







>







402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
    if( strglob("*(compatible;?MSIE?[1-9]*", zAgent) ) return 1;
    if( strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent) ) return 1;
    return 0;
  }
  if( memcmp(zAgent, "Opera/", 6)==0 ) return 1;
  if( memcmp(zAgent, "Safari/", 7)==0 ) return 1;
  if( memcmp(zAgent, "Lynx/", 5)==0 ) return 1;
  if( memcmp(zAgent, "NetSurf/", 8)==0 ) return 1;
  return 0;
}

/*
** COMMAND: test-ishuman
**
** Read lines of text from standard input.  Interpret each line of text