aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.inc
diff options
context:
space:
mode:
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";
}