aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fuchs <martin.fuchs@trendchiller.com>2011-09-30 14:44:50 +0200
committerMartin Fuchs <martin.fuchs@trendchiller.com>2011-09-30 14:44:50 +0200
commitce2735901deac81ac11f675224dd01c531b1a3df (patch)
tree7d25b9f1eb2e85216985c7a895099ea31e934378
parentab7858145f9fca43afaa22791911ddfbbb997656 (diff)
downloadpfsense-packages-ce2735901deac81ac11f675224dd01c531b1a3df.tar.gz
pfsense-packages-ce2735901deac81ac11f675224dd01c531b1a3df.tar.bz2
pfsense-packages-ce2735901deac81ac11f675224dd01c531b1a3df.zip
fix acl generation bug
-rw-r--r--config/squid-reverse/squid.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc
index e3704ab6..03b60f30 100644
--- a/config/squid-reverse/squid.inc
+++ b/config/squid-reverse/squid.inc
@@ -1034,15 +1034,16 @@ function squid_resync_reverse() {
$contents = base64_decode($settings['revrse_uri']);
- if(!empty($contents)) {
+ if(!empty($contents)) {
$conf .= "# -= TESTING AREA =-\n";
$defs = explode("\r\n", ($contents));
foreach ($defs as $def) {
- $cfg = explode(";",($def));
- $conf .= "# acl {$cfg[0]} url_regex -i {$settings['reverse_external_fqdn']} {$cfg[1]}.*$\n";
-// if($cfg[3] == 'HTTPS')
-// $conf .= "login=PASS ssl sslflags=DONT_VERIFY_PEER front-end-https=auto ";
-// $conf .= "name={$cfg[0]}\n";
+ if (($cfg[0]) != '' && ($cfg[1]) != '')
+ $cfg = explode(";",($def));
+ $conf .= "# acl {$cfg[0]} url_regex -i {$settings['reverse_external_fqdn']} {$cfg[1]}.*$\n";
+// if($cfg[3] == 'HTTPS')
+// $conf .= "login=PASS ssl sslflags=DONT_VERIFY_PEER front-end-https=auto ";
+// $conf .= "name={$cfg[0]}\n";
}}