diff options
author | Ermal <eri@pfsense.org> | 2012-07-12 18:29:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-12 18:29:52 +0000 |
commit | 5180182c8975d4630cbc22174cc41f8e2c6d2b55 (patch) | |
tree | f9daf659a6606c28ca336a3679e2b973c07108e5 /config/snort/snort_barnyard.php | |
parent | 6990da95b8a274747c3138d16a3b914842c646b7 (diff) | |
download | pfsense-packages-5180182c8975d4630cbc22174cc41f8e2c6d2b55.tar.gz pfsense-packages-5180182c8975d4630cbc22174cc41f8e2c6d2b55.tar.bz2 pfsense-packages-5180182c8975d4630cbc22174cc41f8e2c6d2b55.zip |
Fix the issues with rules pages and the ones rpeorted on the forum
Diffstat (limited to 'config/snort/snort_barnyard.php')
-rw-r--r-- | config/snort/snort_barnyard.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php index 17769ca8..914bcead 100644 --- a/config/snort/snort_barnyard.php +++ b/config/snort/snort_barnyard.php @@ -46,11 +46,6 @@ if (!is_array($config['installedpackages']['snortglobal']['rule'])) $config['installedpackages']['snortglobal']['rule'] = array(); $a_nat = &$config['installedpackages']['snortglobal']['rule']; -if (isset($_GET['dup'])) { - $id = $_GET['dup']; - $after = $_GET['dup']; -} - $pconfig = array(); if (isset($id) && $a_nat[$id]) { /* old options */ @@ -87,10 +82,7 @@ if ($_POST) { if (isset($id) && $a_nat[$id]) $a_nat[$id] = $natent; else { - if (is_numeric($after)) - array_splice($a_nat, $after+1, 0, array($natent)); - else - $a_nat[] = $natent; + $a_nat[] = $natent; } write_config(); |