aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2006-12-24 23:02:51 +0000
committerSeth Mos <seth.mos@xs4all.nl>2006-12-24 23:02:51 +0000
commit127f1d316cfb83d3fb571d856e6dc32ff5b84323 (patch)
treec7b3d560a413962fc3c48096ee79e6f8bd0a357f
parent4d72c982b7cb1b2f24486a4ab7a240a82ed2f029 (diff)
downloadpfsense-packages-127f1d316cfb83d3fb571d856e6dc32ff5b84323.tar.gz
pfsense-packages-127f1d316cfb83d3fb571d856e6dc32ff5b84323.tar.bz2
pfsense-packages-127f1d316cfb83d3fb571d856e6dc32ff5b84323.zip
Allow setting maxium object size to 0 so we can prevent disk caching and run embedded.
-rw-r--r--packages/squid/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 7640ff39..dffcf15d 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -249,7 +249,7 @@ function squid_validate_cache($post, $input_errors) {
);
foreach ($num_fields as $field => $name) {
$value = trim($post[$field]);
- if (!is_numeric($value) || ($value < 1))
+ if (!is_numeric($value) || ($value < 0))
$input_errors[] = "You must enter a valid value for '$field'";
}