summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-06-05 21:23:31 +0000
committerBill Marquette <billm@pfsense.org>2005-06-05 21:23:31 +0000
commita6713b327538115bd02c91d3b833f1e62cec6793 (patch)
treec2d40405429104b4480849262fdd2554b84a83c6 /usr/local/www/firewall_nat_edit.php
parent5c6bef5b80a555bdc2819b829354565f19754f1c (diff)
downloadpfsense-a6713b327538115bd02c91d3b833f1e62cec6793.zip
pfsense-a6713b327538115bd02c91d3b833f1e62cec6793.tar.gz
Fix nat rule dup so we really create a new rule instead of just editing the current one.
Reported-By: Criggie
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index f67d5e6..4536553 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -61,6 +61,9 @@ if (isset($id) && $a_nat[$id]) {
$pconfig['interface'] = "wan";
}
+if (isset($_GET['dup']))
+ unset($id);
+
if ($_POST) {
if ($_POST['beginport_cust'] && !$_POST['beginport'])
OpenPOWER on IntegriCloud