From: Henrik Nordstrom Date: Fri, 19 Sep 2008 21:54:43 +0000 (+0200) Subject: Bug #2470: Ignore commented and blank lines in acl files X-Git-Tag: SQUID_3_1_0_1~49^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e64fb5e53f600a9382a2d9f8aa409180c6d5778;p=thirdparty%2Fsquid.git Bug #2470: Ignore commented and blank lines in acl files The refactoring of strtokFile got the logics for when to ignore blank lines or commented lines wrong, effectively not ignoring anything.. --- diff --git a/src/ConfigParser.cc b/src/ConfigParser.cc index e773c27048..2f166fe683 100644 --- a/src/ConfigParser.cc +++ b/src/ConfigParser.cc @@ -110,7 +110,7 @@ ConfigParser::strtokFile(void) /* skip comments */ /* skip blank lines */ - } while( *t != '#' && !*t ); + } while( *t == '#' || !*t ); return t; }