diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-02-13 00:17:30 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-02-13 00:19:15 -0600 |
commit | e2d0aee863f6da130833bc1d6c2247a64f130b88 (patch) | |
tree | 39121bf5e26e40bddf56292fcb20db31ecdb7369 | |
parent | 1ac99c4e5d19000f4f59822c6560b23315d01586 (diff) | |
download | pfsense-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.
-rw-r--r-- | usr/local/www/diag_logs_settings.php | 4 |
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) { |