From: Quy Tonthat Date: Fri, 24 Aug 2007 14:29:07 +0000 (+0000) Subject: Better checking to detect downloaded text instead of images X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/1918a9938c9bd96b339bb04763f18ecf79ed7552 Better checking to detect downloaded text instead of images Signed-off-by: Quy Tonthat --- diff --git a/ChangeLog b/ChangeLog index 1c079d8f..7de64f8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2007-08-25 Quy Tonthat : * New google version number. + * Better checking to detect downloaded text instead of images. 2007-08-20 Guilhem Bonnefille : diff --git a/src/download.c b/src/download.c index 42a1e7b5..46a88b2d 100644 --- a/src/download.c +++ b/src/download.c @@ -90,7 +90,7 @@ static int check_map_file(FILE* f) if ((bp >= (buf + sizeof(buf) -1)) || ((bp - buf) >= nr)) return(res); for (s = html_str; *s; s++) { - if (strncmp(*s, bp, strlen(*s)) == 0) + if (strncasecmp(*s, bp, strlen(*s)) == 0) return(-1); } return(res);