diff options
author | doktornotor <notordoktor@gmail.com> | 2015-09-25 09:42:45 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-09-25 09:42:45 +0200 |
commit | 2df7210ac6afa2553db919e3aefcb706077fa31c (patch) | |
tree | 673aa2295ed23c3516c402bd9096086a735a8764 /config | |
parent | 36454612b5fdffd16b76ebfe0e4b130b07920dcb (diff) | |
download | pfsense-packages-2df7210ac6afa2553db919e3aefcb706077fa31c.tar.gz pfsense-packages-2df7210ac6afa2553db919e3aefcb706077fa31c.tar.bz2 pfsense-packages-2df7210ac6afa2553db919e3aefcb706077fa31c.zip |
Fix quick_abort_min input validation to conform to Squid documentation
-1 is a legal value here, meaning always finish the retrieval.
Diffstat (limited to 'config')
-rwxr-xr-x | config/squid3/34/squid.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 4905f96c..33836d9e 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -675,8 +675,8 @@ function squid_validate_traffic($post, &$input_errors) { if (!empty($post['quick_abort_min'])) { $value = trim($post['quick_abort_min']); - if (!is_numericint($value)) { - $input_errors[] = "'Finish when remaining KB' must contain a positive integer."; + if ((!is_numericint($value)) && ($value !== -1)) { + $input_errors[] = "'Finish when remaining KB' must contain a positive integer or '-1'."; } } |