]> git.street.me.uk Git - andy/viking.git/commitdiff
Better checking to detect downloaded text instead of images
authorQuy Tonthat <qtonthat@gmail.com>
Fri, 24 Aug 2007 14:29:07 +0000 (14:29 +0000)
committerQuy Tonthat <qtonthat@gmail.com>
Fri, 24 Aug 2007 14:29:07 +0000 (14:29 +0000)
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
ChangeLog
src/download.c

index 1c079d8ff224aac5ae5c5e44370370ab4c5de621..7de64f8cc7302e76fd731c61f4ecbbe38ecc2d56 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-08-25
 Quy Tonthat <qtonthat@gmail.com>:
        * New google version number.
+       * Better checking to detect downloaded text instead of images.
 
 2007-08-20
 Guilhem Bonnefille <guilhem.bonnefille@gmail.com>:
index 42a1e7b5632b777bf1717efdccbb20f88e6a2da0..46a88b2dc24447de26aeabd64df4bdd09b1d00f6 100644 (file)
@@ -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);