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:17:30 -0600
commit47d3f94ae10fa825805dd1aef8bfd49c927fbee0 (patch)
tree4098d98add653778175231945a64166d368f938d /usr/local/www/diag_logs_settings.php
parentb95a4d8ab808cfb39f4b8ad4831d569faf225195 (diff)
downloadpfsense-47d3f94ae10fa825805dd1aef8bfd49c927fbee0.zip
pfsense-47d3f94ae10fa825805dd1aef8bfd49c927fbee0.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