diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-02-24 00:45:10 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-02-24 00:45:10 -0500 |
commit | c1717f2d9752d19c54e86e1bcb6cb81f5b253710 (patch) | |
tree | 9621752d6a07a24f82c011ad779b73121f3e8dc7 /config/suricata/suricata_libhtp_policy_engine.php | |
parent | dba0780dfe6de88f84f7c78a64a8f3eb60fecee3 (diff) | |
download | pfsense-packages-c1717f2d9752d19c54e86e1bcb6cb81f5b253710.tar.gz pfsense-packages-c1717f2d9752d19c54e86e1bcb6cb81f5b253710.tar.bz2 pfsense-packages-c1717f2d9752d19c54e86e1bcb6cb81f5b253710.zip |
Bug fixes and replace $_GET with $_POST where possible.
Diffstat (limited to 'config/suricata/suricata_libhtp_policy_engine.php')
-rw-r--r-- | config/suricata/suricata_libhtp_policy_engine.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/config/suricata/suricata_libhtp_policy_engine.php b/config/suricata/suricata_libhtp_policy_engine.php index e7cf4135..ec00bbb2 100644 --- a/config/suricata/suricata_libhtp_policy_engine.php +++ b/config/suricata/suricata_libhtp_policy_engine.php @@ -43,6 +43,10 @@ if (is_null($id)) { header("Location: /suricata/suricata_interfaces.php"); exit; } +if (is_null($eng_id)) { + header("Location: /suricata/suricata_app_parsers.php?id={$id}"); + exit; +} if (!is_array($config['installedpackages']['suricata']['rule'])) $config['installedpackages']['suricata']['rule'] = array(); @@ -71,7 +75,7 @@ else { $pconfig['personality'] = "IDS"; } -if ($_POST['Cancel']) { +if ($_POST['cancel']) { header("Location: /suricata/suricata_app_parsers.php?id={$id}"); exit; } @@ -82,7 +86,7 @@ if ($_GET['act'] == "import") { $pconfig[$_GET['varname']] = $_GET['varvalue']; } -if ($_POST['Submit']) { +if ($_POST['save']) { /* Grab all the POST values and save in new temp array */ $engine = array(); @@ -279,10 +283,10 @@ if ($savemsg) <tr> <td width="22%" valign="bottom"> </td> <td width="78%" valign="bottom"> - <input name="Submit" id="submit" type="submit" class="formbtn" value=" Save " title="<?php echo + <input name="save" id="save" type="submit" class="formbtn" value=" Save " title="<?php echo gettext("Save web server policy engine settings and return to App Parsers tab"); ?>"> - <input name="Cancel" id="cancel" type="submit" class="formbtn" value="Cancel" title="<?php echo + <input name="cancel" id="cancel" type="submit" class="formbtn" value="Cancel" title="<?php echo gettext("Cancel changes and return to App Parsers tab"); ?>"></td> </tr> </table> |