aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.inc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2006-10-25 01:08:45 +0000
committerBill Marquette <billm@pfsense.org>2006-10-25 01:08:45 +0000
commit33a96e9718875f7c56a9825b143e602f8d3d783e (patch)
treee4a9b73ae1466a618885ecc8b109a785f4595478 /packages/squid.inc
parent858b9059ceae3ee1021948b295ed3e80d895eaa9 (diff)
downloadpfsense-packages-33a96e9718875f7c56a9825b143e602f8d3d783e.tar.gz
pfsense-packages-33a96e9718875f7c56a9825b143e602f8d3d783e.tar.bz2
pfsense-packages-33a96e9718875f7c56a9825b143e602f8d3d783e.zip
fix blank cidr block issue reported by gbelanger@forums
http://forum.pfsense.org/index.php/topic,2434.msg14833.html#msg14833
Diffstat (limited to 'packages/squid.inc')
-rw-r--r--packages/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index ae731d94..afbd775a 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -217,7 +217,7 @@ function squid_validate_nac($post, $input_errors) {
$allowed_subnets = explode(',', trim($post['allowed_subnets']));
foreach ($allowed_subnets as $subnet) {
$subnet = trim($subnet);
- if (!is_subnet($subnet))
+ if (!empty($subnet) && !is_subnet($subnet))
$input_errors[] = "'$subnet' is not a valid CIDR range";
}