From 8c0fcc9d45f382d5f171adaf5bba112b0172d566 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 3 Aug 2011 15:43:43 +0000 Subject: Another round of fixes for whitelist and suppress. Also correct behaviour of some GUI. --- config/snort/snort_interfaces_whitelist_edit.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'config/snort/snort_interfaces_whitelist_edit.php') diff --git a/config/snort/snort_interfaces_whitelist_edit.php b/config/snort/snort_interfaces_whitelist_edit.php index 40f92318..8c54ac5a 100644 --- a/config/snort/snort_interfaces_whitelist_edit.php +++ b/config/snort/snort_interfaces_whitelist_edit.php @@ -58,9 +58,7 @@ if ($config['installedpackages']['snortglobal']['whitelist']['item'][$id]['uuid' $whitelist_uuid = mt_rand(1, 65535); $pconfig['uuid'] = $whitelist_uuid; } -} - -if ($config['installedpackages']['snortglobal']['whitelist']['item'][$id]['uuid'] != '') { +} else if ($config['installedpackages']['snortglobal']['whitelist']['item'][$id]['uuid'] != '') { $whitelist_uuid = $config['installedpackages']['snortglobal']['whitelist']['item'][$id]['uuid']; } @@ -209,7 +207,7 @@ if ($_POST['submit']) { /* create whitelist and homenet file then sync files */ sync_snort_package_empty(); - header("Location: /snort/snort_interfaces_whitelist_edit.php?id=$id"); + header("Location: /snort/snort_interfaces_whitelist.php"); exit; } //we received input errors, copy data to prevent retype -- cgit v1.2.3