Don't bother checking format of the password file, because it might
authorJamie Cameron <jcameron@webmin.com>
Wed, 13 Apr 2011 04:45:11 +0000 (21:45 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 13 Apr 2011 04:45:11 +0000 (21:45 -0700)
start with a comment.
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3285612&group_id=17457

squid/index.cgi

index edd5d8d..0fbc04d 100755 (executable)
@@ -92,14 +92,7 @@ if ($squid_version < 2) {
        }
 else {
        local $file = &get_auth_file($conf);
-       if ($file) {
-               open(AUTH, $file);
-               local $line = <AUTH>;
-               close(AUTH);
-               if (!$line || $line =~ /^(\S+):(\S+)/) {
-                       $auth = 2;
-                       }
-               }
+       $auth = 2 if ($file);
        }
 $calamaris = &has_command($config{'calamaris'});
 $delay = $squid_version >= 2.3;