From 61bcdf1c9faa28dd579353c0905d990e4ffeedba Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 4 Feb 2013 13:19:17 -0500 Subject: Don't add an empty ext_manager --- config/squid/squid.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') 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"; -- cgit v1.2.3