diff options
Diffstat (limited to 'src/usr/local/www/firewall_nat_1to1_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_1to1_edit.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1_edit.php b/src/usr/local/www/firewall_nat_1to1_edit.php index 4994ff9..8f5d705 100644 --- a/src/usr/local/www/firewall_nat_1to1_edit.php +++ b/src/usr/local/www/firewall_nat_1to1_edit.php @@ -56,14 +56,10 @@ if (!is_array($config['nat']['onetoone'])) { $a_1to1 = &$config['nat']['onetoone']; -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']; } @@ -101,7 +97,7 @@ if (isset($_GET['dup'])) { unset($id); } -if ($_POST) { +if ($_POST['save']) { unset($input_errors); /* run through $_POST items encoding HTML entities so that the user |