From 984b4fb7aa7cca3579c9fbb6b6beec3cf2d4d17f Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 2 Aug 2011 22:00:03 +0000 Subject: Redirect to the main page if no id has been passed. --- config/snort/snort_rulesets.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/snort/snort_rulesets.php') 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']; -- cgit v1.2.3