aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-14 10:27:12 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-14 10:27:12 +0200
commit633a702b9ff9e427ccdb5a9017066c56454ed90d (patch)
tree0801b807e6fe3128010ea1e1a4b65e0f02bba41f /config
parent01cbf628b0c380390ea05bd0b4aec62240160c1f (diff)
downloadpfsense-packages-633a702b9ff9e427ccdb5a9017066c56454ed90d.tar.gz
pfsense-packages-633a702b9ff9e427ccdb5a9017066c56454ed90d.tar.bz2
pfsense-packages-633a702b9ff9e427ccdb5a9017066c56454ed90d.zip
Fix "Finish transfer if less than x KB remaining" validation
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/34/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 07d1da26..a2b6dc56 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -953,7 +953,7 @@ function squid_validate_traffic($post, &$input_errors) {
if (!empty($post['quick_abort_min'])) {
$value = trim($post['quick_abort_min']);
- if ((!is_numericint($value)) && ($value !== -1)) {
+ if ((!is_numericint($value)) && ($value != "-1")) {
$input_errors[] = "'Finish when remaining KB' must contain a positive integer or '-1'.";
}
}