diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 20:36:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 20:36:19 +0000 |
commit | 7ce627078dece9d73563191f262ff2bbb0b447fd (patch) | |
tree | 1a3001dd9c2385697daeab06dea6f7065e9bc819 /packages/squid.inc | |
parent | 90d83efde59f9f7b30626e8c90af2250c916202b (diff) | |
download | pfsense-packages-7ce627078dece9d73563191f262ff2bbb0b447fd.tar.gz pfsense-packages-7ce627078dece9d73563191f262ff2bbb0b447fd.tar.bz2 pfsense-packages-7ce627078dece9d73563191f262ff2bbb0b447fd.zip |
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.
Diffstat (limited to 'packages/squid.inc')
-rw-r--r-- | packages/squid.inc | 6 |
1 files changed, 1 insertions, 5 deletions
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)) |