diff options
author | Ermal <eri@pfsense.org> | 2011-08-02 22:00:03 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-02 22:00:03 +0000 |
commit | 984b4fb7aa7cca3579c9fbb6b6beec3cf2d4d17f (patch) | |
tree | 6eb766182ebe79aa092ae868200f265bf0f123e8 /config/snort | |
parent | 54e4333ba03cd080a2281cbae4a48bb7a1551615 (diff) | |
download | pfsense-packages-984b4fb7aa7cca3579c9fbb6b6beec3cf2d4d17f.tar.gz pfsense-packages-984b4fb7aa7cca3579c9fbb6b6beec3cf2d4d17f.tar.bz2 pfsense-packages-984b4fb7aa7cca3579c9fbb6b6beec3cf2d4d17f.zip |
Redirect to the main page if no id has been passed.
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort_interfaces_edit.php | 6 | ||||
-rw-r--r-- | config/snort/snort_rulesets.php | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php index 4b5ab7ac..befdbe11 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -44,8 +44,10 @@ $a_nat = &$config['installedpackages']['snortglobal']['rule']; $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; -if (!is_numeric($id)) - $id = 0; /* XXX: Safety belt */ +if (is_null($id)) { + header("Location: /snort/snort_interfaces.php"); + exit; +} if (isset($_GET['dup'])) { $id = $_GET['dup']; diff --git a/config/snort/snort_rulesets.php b/config/snort/snort_rulesets.php index 30dbf742..cbd64845 100644 --- a/config/snort/snort_rulesets.php +++ b/config/snort/snort_rulesets.php @@ -45,6 +45,10 @@ $a_nat = &$config['installedpackages']['snortglobal']['rule']; $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; +if (is_null($id)) { + header("Location: /snort/snort_interfaces.php"); + exit; +} if (isset($id) && $a_nat[$id]) { $pconfig['enable'] = $a_nat[$id]['enable']; |