aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_app_parsers.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-03-19 17:24:00 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-03-19 17:24:00 -0400
commit5cb08a96dec952ae6e1fd657e6940ea79af4f8d8 (patch)
tree3785b260aa6654f8cca35bab5b188f2cd86cb9f8 /config/suricata/suricata_app_parsers.php
parent96899344ac872f5e811ea5394192c7c233457124 (diff)
downloadpfsense-packages-5cb08a96dec952ae6e1fd657e6940ea79af4f8d8.tar.gz
pfsense-packages-5cb08a96dec952ae6e1fd657e6940ea79af4f8d8.tar.bz2
pfsense-packages-5cb08a96dec952ae6e1fd657e6940ea79af4f8d8.zip
Add new Log Mgmt tab link and improve parameter checking.
Diffstat (limited to 'config/suricata/suricata_app_parsers.php')
-rw-r--r--config/suricata/suricata_app_parsers.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/suricata/suricata_app_parsers.php b/config/suricata/suricata_app_parsers.php
index e8f20226..8d0bb4f4 100644
--- a/config/suricata/suricata_app_parsers.php
+++ b/config/suricata/suricata_app_parsers.php
@@ -33,9 +33,11 @@ require_once("/usr/local/pkg/suricata/suricata.inc");
global $g, $rebuild_rules;
-$id = $_GET['id'];
-if (isset($_POST['id']))
+if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
+elseif (isset($_GET['id']) && is_numericint($_GET['id']))
+ $id = htmlspecialchars($_GET['id']);
+
if (is_null($id))
$id = 0;
@@ -397,6 +399,7 @@ include_once("head.inc");
$tab_array[] = array(gettext("Alerts"), false, "/suricata/suricata_alerts.php?instance={$id}");
$tab_array[] = array(gettext("Suppress"), false, "/suricata/suricata_suppress.php");
$tab_array[] = array(gettext("Logs Browser"), false, "/suricata/suricata_logs_browser.php?instance={$id}");
+ $tab_array[] = array(gettext("Logs Mgmt"), false, "/suricata/suricata_logs_mgmt.php");
display_top_tabs($tab_array);
echo '</td></tr>';
echo '<tr><td>';