File squidGuard-unusual_url_end.patch of Package squidGuard.5169
Index: src/sgDiv.c
===================================================================
--- src/sgDiv.c.orig
+++ src/sgDiv.c
@@ -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("://"); */
}
}