aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-01-24 22:45:36 -0200
committerDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-01-24 22:45:36 -0200
commit2815b751056a604ecff6dfc6e7a94c6db750cfb2 (patch)
treee25312f8c68c89f2cd2b4a5312201ec3107bfd60 /config
parent4c1748a29889bba8fccadb18926a6c7ae1eec5fd (diff)
downloadpfsense-packages-2815b751056a604ecff6dfc6e7a94c6db750cfb2.tar.gz
pfsense-packages-2815b751056a604ecff6dfc6e7a94c6db750cfb2.tar.bz2
pfsense-packages-2815b751056a604ecff6dfc6e7a94c6db750cfb2.zip
Fix creation of acl noauth
Diffstat (limited to 'config')
-rw-r--r--config/squid/squid.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 54e87c1a..6decbfb6 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -1041,9 +1041,12 @@ function squid_resync_auth() {
$conf .= "http_access allow $acl\n";
}
else {
- $noauth = implode(' ', explode("\n", base64_decode($settings['no_auth_hosts'])));
+ $noauth = base64_decode($settings['no_auth_hosts']);
if (!empty($noauth)) {
- $conf .= "acl noauth src $noauth\n";
+ foreach (explode("\n", $noauth) as $host) {
+ $host = trim($host);
+ $conf .= "acl noauth src $host\n";
+ }
$valid_acls[] = 'noauth';
}