aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-04 13:19:17 -0500
committerjim-p <jimp@pfsense.org>2013-02-04 13:19:17 -0500
commit61bcdf1c9faa28dd579353c0905d990e4ffeedba (patch)
tree646022ec7d090c30368f6ac5b36c9c3b80f30990 /config
parentc341e805e8edbfdae8f84640d86170a37097721d (diff)
downloadpfsense-packages-61bcdf1c9faa28dd579353c0905d990e4ffeedba.tar.gz
pfsense-packages-61bcdf1c9faa28dd579353c0905d990e4ffeedba.tar.bz2
pfsense-packages-61bcdf1c9faa28dd579353c0905d990e4ffeedba.zip
Don't add an empty ext_manager
Diffstat (limited to 'config')
-rw-r--r--config/squid/squid.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 960bad67..e620ae61 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -862,11 +862,13 @@ http_access allow manager localhost
EOD;
if(!empty($settings['ext_cachemanager'])) {
- $extmgr = explode(";", ($settings['ext_cachemanager']));
+ $extmgr = array_unique(explode(";", rtrim($settings['ext_cachemanager'], ';')));
$count = 1;
$conf .= "\n# Allow external cache managers\n";
// $conf .= "acl ext_manager src ".$settings['ext_cachemanager']."\n";
foreach ($extmgr as $mgr) {
+ if (empty($mgr))
+ continue;
$conf .= "acl ext_manager_".$count." src ";
$conf .= $mgr." ";
$conf .= "\n";