aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid
diff options
context:
space:
mode:
authorDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-01-24 20:30:09 -0200
committerDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-01-24 20:30:09 -0200
commit23e79c9b263391e2305e7df7ac89c05bf133f416 (patch)
tree981acc4a45aa889a629a9a5a831115e10cae52f6 /config/squid
parentd5726cd30250d85f93bf372cd3082a40f34f406a (diff)
downloadpfsense-packages-23e79c9b263391e2305e7df7ac89c05bf133f416.tar.gz
pfsense-packages-23e79c9b263391e2305e7df7ac89c05bf133f416.tar.bz2
pfsense-packages-23e79c9b263391e2305e7df7ac89c05bf133f416.zip
Fix creation of acl noauth
Diffstat (limited to 'config/squid')
-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..00d6c1cf 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 (split("\n", $noauth) as $host) {
+ $host = trim($host);
+ $conf .= "acl noauth src $host\n";
+ }
$valid_acls[] = 'noauth';
}