summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_settings.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-02-13 00:17:30 -0600
committerChris Buechler <cmb@pfsense.org>2015-02-13 00:19:15 -0600
commite2d0aee863f6da130833bc1d6c2247a64f130b88 (patch)
tree39121bf5e26e40bddf56292fcb20db31ecdb7369 /usr/local/www/diag_logs_settings.php
parent1ac99c4e5d19000f4f59822c6560b23315d01586 (diff)
downloadpfsense-e2d0aee863f6da130833bc1d6c2247a64f130b88.zip
pfsense-e2d0aee863f6da130833bc1d6c2247a64f130b88.tar.gz
force minimum 100000 byte log file size. Some have been confused thinking this is KB, in some cases causing problems. This should help, and there shouldn't be a need for logs smaller than that.
Diffstat (limited to 'usr/local/www/diag_logs_settings.php')
-rw-r--r--usr/local/www/diag_logs_settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php
index 0984c5e..e2eca1a 100644
--- a/usr/local/www/diag_logs_settings.php
+++ b/usr/local/www/diag_logs_settings.php
@@ -109,8 +109,8 @@ if ($_POST['resetlogs'] == gettext("Reset Log Files")) {
}
if (isset($_POST['logfilesize']) && (strlen($_POST['logfilesize']) > 0)) {
- if (!is_numeric($_POST['logfilesize']) || ($_POST['logfilesize'] < 5120)) {
- $input_errors[] = gettext("Log file size must be a positive integer greater than 5120.");
+ if (!is_numeric($_POST['logfilesize']) || ($_POST['logfilesize'] < 100000)) {
+ $input_errors[] = gettext("Log file size must be numeric and greater than or equal to 100000.");
}
}
if (!$input_errors) {
OpenPOWER on IntegriCloud