diff options
author | Martin Fuchs <mfuchs77@gmail.com> | 2014-06-13 11:31:52 +0200 |
---|---|---|
committer | Martin Fuchs <mfuchs77@gmail.com> | 2014-06-13 11:31:52 +0200 |
commit | 2bbfbdd783fe46d584d91b6014ef6c86520a9097 (patch) | |
tree | d43466316f4805d9ef1867d81f60afaa1fd690c2 /config/squid3/33/squid.inc | |
parent | 0ef20f92b5bea3d3487c249d515f905d09f859a7 (diff) | |
download | pfsense-packages-2bbfbdd783fe46d584d91b6014ef6c86520a9097.tar.gz pfsense-packages-2bbfbdd783fe46d584d91b6014ef6c86520a9097.tar.bz2 pfsense-packages-2bbfbdd783fe46d584d91b6014ef6c86520a9097.zip |
allow multiple CAS-servers, correct checks
Diffstat (limited to 'config/squid3/33/squid.inc')
-rwxr-xr-x | config/squid3/33/squid.inc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/config/squid3/33/squid.inc b/config/squid3/33/squid.inc index a97746e2..d006c0db 100755 --- a/config/squid3/33/squid.inc +++ b/config/squid3/33/squid.inc @@ -615,9 +615,8 @@ function squid_validate_reverse($post, $input_errors) { if(!empty($post['reverse_ip'])) { $reverse_ip = explode(";", ($post['reverse_ip'])); foreach ($reverse_ip as $reip) { - if (!is_ipaddr($reip)) - $input_errors[] = 'You must enter a valid IP address in the \'User-defined reverse-proxy IPs\' field'; - break; + if (!is_ipaddr(trim($reip))) + $input_errors[] = 'You must enter a valid IP address in the \'User-defined reverse-proxy IPs\' field'.' -> \''.$reip.'\' is invalid.'; }} $fqdn = trim($post['reverse_external_fqdn']); @@ -639,15 +638,12 @@ function squid_validate_reverse($post, $input_errors) { $input_errors[] = "You have to enable reverse HTTPS before enabling OWA support."; } -/* - if (!is_cert($post['reverse_int_ca'])) - $input_errors[] = 'A valid certificate for the external interface must be selected'; -*/ - - $rowa = trim($post['reverse_owa_ip']); - if (!empty($rowa) && !is_ipaddr($rowa)) - $input_errors[] = 'The field \'OWA frontend IP address\' must contain a valid IP address'; - + if(!empty($post['reverse_owa_ip'])) { + $reverse_owa_ip = explode(";", ($post['reverse_owa_ip'])); + foreach ($reverse_owa_ip as $reowaip) { + if (!is_ipaddr(trim($reowaip))) + $input_errors[] = 'You must enter a valid IP address in the \'CAS-Array / OWA frontend IP address\' field'.' -> \''.$reowaip.'\' is invalid.'; + }} $contents = $post['reverse_cache_peer']; if(!empty($contents)) { |