summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_logs.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2015-12-17 17:41:31 -0800
committerNOYB <Al_Stu@Frontier.com>2015-12-17 17:41:31 -0800
commit873dd96927bf8014817f6561cb8a5f636e8454e5 (patch)
treeb68b4525136aa54a44e2fba8f45207fc3e5b1f34 /src/usr/local/www/status_logs.php
parent5e71234e381084de09ab1d42c2fb30c9e9d52fc2 (diff)
downloadpfsense-873dd96927bf8014817f6561cb8a5f636e8454e5.zip
pfsense-873dd96927bf8014817f6561cb8a5f636e8454e5.tar.gz
Status - System Logs - Manage Log - Input Validation
Add input validation at form level in browser. Keep PHP server side validation so as not to rely solely on the browser.
Diffstat (limited to 'src/usr/local/www/status_logs.php')
-rwxr-xr-xsrc/usr/local/www/status_logs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_logs.php b/src/usr/local/www/status_logs.php
index 5c2c39a..0e0e5f4 100755
--- a/src/usr/local/www/status_logs.php
+++ b/src/usr/local/www/status_logs.php
@@ -571,7 +571,7 @@ $group->add(new Form_Input(
'GUI Log Entries',
'number',
$pconfig['nentries'],
- ['placeholder' => $config['syslog']['nentries']]
+ ['min' => 5, 'placeholder' => $config['syslog']['nentries']]
))->setWidth(2);
$group->setHelp('This is the number of log entries displayed in the GUI. It does not affect how many entries are contained in the log.');
@@ -585,7 +585,7 @@ $group->add(new Form_Input(
'Log file size (Bytes)',
'number',
$pconfig['logfilesize'],
- ['placeholder' => $config['syslog']['logfilesize'] ? $config['syslog']['logfilesize'] : "511488"]
+ ['min' => 100000, 'placeholder' => $config['syslog']['logfilesize'] ? $config['syslog']['logfilesize'] : "511488"]
))->setWidth(2);
$group->setHelp("The log is held in a constant-size circular log file. This field controls how large the log file is, and thus how many entries may exist inside the log. The default is approximately 500KB." .
'<br /><br />' .
OpenPOWER on IntegriCloud