diff options
author | Ermal Luçi <eri@pfsense.org> | 2014-03-19 23:50:45 +0100 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2014-03-19 23:50:45 +0100 |
commit | 79719c58b2d433d5f151eb2a7d9766a8cc74088d (patch) | |
tree | ce0d3c7612d3be50f4efab073a82a66dc6e35149 /config/suricata/suricata_logs_browser.php | |
parent | 7157e10ba81c83879039db1259aaef6aab056cb2 (diff) | |
parent | 239348fd4adb0ac6b634d5e8255f3081ac62efdf (diff) | |
download | pfsense-packages-79719c58b2d433d5f151eb2a7d9766a8cc74088d.tar.gz pfsense-packages-79719c58b2d433d5f151eb2a7d9766a8cc74088d.tar.bz2 pfsense-packages-79719c58b2d433d5f151eb2a7d9766a8cc74088d.zip |
Merge pull request #629 from bmeeks8/master
Suricata 1.4.6 pkg. v0.3-BETA Package Update
Diffstat (limited to 'config/suricata/suricata_logs_browser.php')
-rw-r--r-- | config/suricata/suricata_logs_browser.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/suricata/suricata_logs_browser.php b/config/suricata/suricata_logs_browser.php index f9c34ed0..53530881 100644 --- a/config/suricata/suricata_logs_browser.php +++ b/config/suricata/suricata_logs_browser.php @@ -30,10 +30,10 @@ require_once("guiconfig.inc"); require_once("/usr/local/pkg/suricata/suricata.inc"); -if ($_POST['instance']) +if (isset($_POST['instance']) && is_numericint($_POST['instance'])) $instanceid = $_POST['instance']; -if ($_GET['instance']) - $instanceid = $_GET['instance']; +elseif (isset($_GET['instance']) && is_numericint($_GET['instance'])) + $instanceid = htmlspecialchars($_GET['instance']); if (empty($instanceid)) $instanceid = 0; @@ -131,6 +131,7 @@ if ($input_errors) { $tab_array[] = array(gettext("Alerts"), false, "/suricata/suricata_alerts.php?instance={$instanceid}"); $tab_array[] = array(gettext("Suppress"), false, "/suricata/suricata_suppress.php"); $tab_array[] = array(gettext("Logs Browser"), true, "/suricata/suricata_logs_browser.php"); + $tab_array[] = array(gettext("Logs Mgmt"), false, "/suricata/suricata_logs_mgmt.php"); display_top_tabs($tab_array); ?> </td> |