From 01b30fa7eeda901f2856b02fd3614513c421b68b Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Fri, 10 Feb 2017 14:33:33 -0500 Subject: GET/POST conversion firewall_nat_npt* --- src/usr/local/www/firewall_nat_npt_edit.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/usr/local/www/firewall_nat_npt_edit.php') 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; -- cgit v1.1