aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squidGuard/squidguard.inc
diff options
context:
space:
mode:
authorD. V. Serg <dvserg@pfsense.org>2008-03-26 09:37:38 +0000
committerD. V. Serg <dvserg@pfsense.org>2008-03-26 09:37:38 +0000
commit31f9cd571761acdf4537bd99d08822f0427ded58 (patch)
tree8fb094a806bf9caf51264d30a6acd13c149604bb /packages/squidGuard/squidguard.inc
parenta92cda2fb6479efe77066bdf6564f1a2052de836 (diff)
downloadpfsense-packages-31f9cd571761acdf4537bd99d08822f0427ded58.tar.gz
pfsense-packages-31f9cd571761acdf4537bd99d08822f0427ded58.tar.bz2
pfsense-packages-31f9cd571761acdf4537bd99d08822f0427ded58.zip
Fix ACL's checking
Diffstat (limited to 'packages/squidGuard/squidguard.inc')
-rw-r--r--packages/squidGuard/squidguard.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/squidGuard/squidguard.inc b/packages/squidGuard/squidguard.inc
index 3afbc8cd..6ddaf67c 100644
--- a/packages/squidGuard/squidguard.inc
+++ b/packages/squidGuard/squidguard.inc
@@ -1409,6 +1409,10 @@ function convert_pfxml_to_sgxml_acl($pfconfig) {
$sgx[FLD_DESTINATIONNAME] = str_replace("!all", "none", $sgx[FLD_DESTINATIONNAME]);
$sgx[FLD_OVERDESTINATIONNAME] = str_replace("!all", "none", $sgx[FLD_OVERDESTINATIONNAME]);
+ // if empty - adding 'none'
+ if (!$sgx[FLD_DESTINATIONNAME]) $sgx[FLD_DESTINATIONNAME] = "none";
+ if (!$sgx[FLD_OVERDESTINATIONNAME]) $sgx[FLD_OVERDESTINATIONNAME] = "none";
+
$sgxml[FLD_ITEM][] = $sgx;
}
}
@@ -1441,6 +1445,9 @@ function convert_pfxml_to_sgxml_default($pfconfig) {
// !ATTENTION! '!all' must be convert to 'none'
$sgx[FLD_DESTINATIONNAME] = str_replace("!all", "none", $sgx[FLD_DESTINATIONNAME]);
+ // if empty - adding 'none'
+ if (!$sgx[FLD_DESTINATIONNAME]) $sgx[FLD_DESTINATIONNAME] = "none";
+
return $sgx;
}