From 7ce627078dece9d73563191f262ff2bbb0b447fd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 29 Sep 2006 20:36:19 +0000 Subject: Whitelist and blacklist types are url_regex, not an ip address. Remove the forced ip checks. Thanks to Free_The_Mallocs for the bug report. --- packages/squid.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'packages/squid.inc') diff --git a/packages/squid.inc b/packages/squid.inc index b3e420a9..a02599c7 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -217,11 +217,7 @@ function squid_validate_nac($post, $input_errors) { $input_errors[] = "'$subnet' is not a valid CIDR range"; } - foreach (array( 'unrestricted_hosts', - 'banned_hosts', - 'whitelist', - 'blacklist', - ) as $hosts) { + foreach (array( 'unrestricted_hosts', 'banned_hosts') as $hosts) { foreach (explode(',', $post[$hosts]) as $host) { $host = trim($host); if (!empty($host) && !is_ipaddr($host)) -- cgit v1.2.3