diff options
Diffstat (limited to 'config/squid')
-rw-r--r-- | config/squid/squid.inc | 4 |
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"; |