summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_npt_edit.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-10 14:33:33 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-10 14:33:33 -0500
commit01b30fa7eeda901f2856b02fd3614513c421b68b (patch)
tree4df5dd2b90220c9a8a0a7c767369615652a498f6 /src/usr/local/www/firewall_nat_npt_edit.php
parentb92055596a099ebd9bea37039118c1c431cd0797 (diff)
downloadpfsense-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.php14
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;
OpenPOWER on IntegriCloud