diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-04-15 10:59:20 -0400 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-04-28 08:03:37 +0000 |
commit | 34cf98243eeedc0e697f20f0caff04ed73e3bd66 (patch) | |
tree | 5366fad8ee6c567512a77ee9c866d7bdf24d0ae7 /config/snort | |
parent | 8effac5182368b998e3866ab1eae58828188ca9e (diff) | |
download | pfsense-packages-34cf98243eeedc0e697f20f0caff04ed73e3bd66.tar.gz pfsense-packages-34cf98243eeedc0e697f20f0caff04ed73e3bd66.tar.bz2 pfsense-packages-34cf98243eeedc0e697f20f0caff04ed73e3bd66.zip |
Fix logic error preventing save of a new Suppress List.
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort_interfaces_suppress_edit.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/config/snort/snort_interfaces_suppress_edit.php b/config/snort/snort_interfaces_suppress_edit.php index 370fa017..986bfc38 100644 --- a/config/snort/snort_interfaces_suppress_edit.php +++ b/config/snort/snort_interfaces_suppress_edit.php @@ -109,7 +109,6 @@ if ($_POST['save']) { } } - if (!$input_errors) { $s_list = array(); $s_list['name'] = $_POST['name']; @@ -125,7 +124,7 @@ if ($_POST['save']) { else $a_suppress[] = $s_list; - write_config(); + write_config("Snort pkg: modified Suppress List {$s_list['name']}."); sync_snort_package_config(); header("Location: /snort/snort_interfaces_suppress.php"); @@ -142,14 +141,14 @@ include_once("head.inc"); <?php include("fbegin.inc"); -if($pfsense_stable == 'yes'){echo '<p class="pgtitle">' . $pgtitle . '</p>';} - -if ($input_errors) print_input_errors($input_errors); +if ($input_errors) + print_input_errors($input_errors); if ($savemsg) print_info_box($savemsg); ?> <form action="/snort/snort_interfaces_suppress_edit.php" name="iform" id="iform" method="post"> +<input name="id" type="hidden" value="<?=$id;?>"/> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <?php @@ -215,8 +214,7 @@ if ($savemsg) <td colspan="2"><input id="save" name="save" type="submit" class="formbtn" value="Save" /> <input id="cancelbutton" name="cancelbutton" type="button" class="formbtn" value="Cancel" - onclick="history.back();"/> <?php if (isset($id) && $a_suppress[$id]): ?> - <input name="id" type="hidden" value="<?=$id;?>"/> <?php endif; ?> + onclick="history.back();"/> </td> </tr> </table> |