From 90b6ca93e0a11b4925935950997376b8ddd4a32e Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 19 Oct 2015 01:03:38 +0200 Subject: Accept "all" in 'Allowed Subnets' (Bug #4525) --- config/squid3/34/squid.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/squid3') diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 3dafded6..f4be3ee3 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -894,8 +894,8 @@ function squid_validate_nac($post, &$input_errors) { $allowed_subnets = explode("\n", $post['allowed_subnets']); foreach ($allowed_subnets as $subnet) { $subnet = trim($subnet); - if (!empty($subnet) && !is_subnet($subnet)) { - $input_errors[] = "The subnet '$subnet' is not a valid CIDR range."; + if (!empty($subnet) && !is_subnet($subnet) && $subnet != "all") { + $input_errors[] = "'Allowed Subnets' must be a valid CIDR range or 'all'. The subnet '$subnet' is not valid."; } } -- cgit v1.2.3