diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 14:33:33 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 14:33:33 -0500 |
commit | 01b30fa7eeda901f2856b02fd3614513c421b68b (patch) | |
tree | 4df5dd2b90220c9a8a0a7c767369615652a498f6 /src/usr/local/www/firewall_nat_npt_edit.php | |
parent | b92055596a099ebd9bea37039118c1c431cd0797 (diff) | |
download | pfsense-01b30fa7eeda901f2856b02fd3614513c421b68b.zip pfsense-01b30fa7eeda901f2856b02fd3614513c421b68b.tar.gz |
GET/POST conversion firewall_nat_npt*
Diffstat (limited to 'src/usr/local/www/firewall_nat_npt_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_npt_edit.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/usr/local/www/firewall_nat_npt_edit.php b/src/usr/local/www/firewall_nat_npt_edit.php index e9dd078..0340755 100644 --- a/src/usr/local/www/firewall_nat_npt_edit.php +++ b/src/usr/local/www/firewall_nat_npt_edit.php @@ -47,21 +47,17 @@ if (!is_array($config['nat']['npt'])) { $a_npt = &$config['nat']['npt']; -if (is_numericint($_GET['id'])) { - $id = $_GET['id']; -} if (isset($_POST['id']) && is_numericint($_POST['id'])) { $id = $_POST['id']; } -$after = $_GET['after']; if (isset($_POST['after'])) { $after = $_POST['after']; } -if (isset($_GET['dup'])) { - $id = $_GET['dup']; - $after = $_GET['dup']; +if (isset($_POST['dup'])) { + $id = $_POST['dup']; + $after = $_POST['dup']; } if (isset($id) && $a_npt[$id]) { @@ -85,11 +81,11 @@ if (isset($id) && $a_npt[$id]) { $pconfig['interface'] = "wan"; } -if (isset($_GET['dup'])) { +if (isset($_POST['dup'])) { unset($id); } -if ($_POST) { +if ($_POST['save']) { unset($input_errors); $pconfig = $_POST; |