File squidGuard-1.3-unusual_url_end.patch of Package squidGuard

--- squidGuard-1.3/src/sgDiv.c.in.orig	2008-07-22 17:41:46.000000000 +0200
+++ squidGuard-1.3/src/sgDiv.c.in	2008-07-14 20:42:39.000000000 +0200
@@ -133,7 +133,7 @@ int parseLine(line, s)
     {
         /* in case this is a '://' skip over it, but try to not read past EOS */
         if(3 <= strsz-ndx) {
-          if(':' == p[ndx] && '/' == p[ndx+1] && '/' == p[ndx+2]) {
+          if(':' == p[ndx] && '/' == p[ndx+1] && '/' == p[ndx+2] && '\0' != p[ndx+3]) {
            ndx+=3; /* 3 == strlen("://"); */
           }
         }
openSUSE Build Service is sponsored by