]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2470: Ignore commented and blank lines in acl files
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 19 Sep 2008 21:54:43 +0000 (23:54 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 19 Sep 2008 21:54:43 +0000 (23:54 +0200)
The refactoring of strtokFile got the logics for when to ignore
blank lines or commented lines wrong, effectively not ignoring anything..

src/ConfigParser.cc

index e773c27048b6ed3c5cac2bcee7c669d1cac1775a..2f166fe683353ed21c4718985bd8c7dfa3f7f777 100644 (file)
@@ -110,7 +110,7 @@ ConfigParser::strtokFile(void)
 
         /* skip comments */
         /* skip blank lines */
-    } while( *t != '#' && !*t );
+    } while( *t == '#' || !*t );
 
     return t;
 }