diff options
author | jim-p <jimp@pfsense.org> | 2015-10-05 15:10:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-10-05 15:10:21 -0400 |
commit | 68364fa7ee9073f2fb9fe9f7717fe430b377615b (patch) | |
tree | 4ca5b1f6be4ef1b64f6294f92d3d857c6194d655 /config | |
parent | 75d35ea191d9280e8a6851c6b07d88f856535ed2 (diff) | |
download | pfsense-packages-68364fa7ee9073f2fb9fe9f7717fe430b377615b.tar.gz pfsense-packages-68364fa7ee9073f2fb9fe9f7717fe430b377615b.tar.bz2 pfsense-packages-68364fa7ee9073f2fb9fe9f7717fe430b377615b.zip |
More handling for alertnumber
Diffstat (limited to 'config')
-rwxr-xr-x | config/snort/snort_alerts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php index a22cf138..52fe0db3 100755 --- a/config/snort/snort_alerts.php +++ b/config/snort/snort_alerts.php @@ -188,7 +188,7 @@ if (is_array($config['installedpackages']['snortglobal']['alertsblocks'])) { $pconfig['alertnumber'] = $config['installedpackages']['snortglobal']['alertsblocks']['alertnumber']; } -if (empty($pconfig['alertnumber'])) +if (empty($pconfig['alertnumber']) || !is_numeric($pconfig['alertnumber'])) $pconfig['alertnumber'] = '250'; if (empty($pconfig['arefresh'])) $pconfig['arefresh'] = 'off'; @@ -249,7 +249,7 @@ if ($_POST['save']) { header("Location: /snort/snort_alerts.php?instance={$instanceid}"); return; } else { - $input_errors[] = "Alert number must be numeric"; + $input_errors[] = gettext("Alert number must be numeric"); } } |