From 68364fa7ee9073f2fb9fe9f7717fe430b377615b Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 5 Oct 2015 15:10:21 -0400 Subject: More handling for alertnumber --- config/snort/snort_alerts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/snort') 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"); } } -- cgit v1.2.3