From 5bc37291c754af3910fe5484043f071289f8cc39 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 4 Jan 2010 20:50:33 -0500 Subject: remove broken input validation check. There's no harm in duplicate outbound NAT rules and the logic here is way off, no need for this check at all. --- usr/local/www/firewall_nat_out_edit.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'usr') diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 8083a3c..209ee78 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -188,15 +188,6 @@ if ($_POST) { if (!$natent['interface']) { $natent['interface'] == "wan"; } - if (($natent['interface'] == $_POST['interface']) && ($natent['source']['network'] == $osn)) { - if (isset($natent['destination']['not']) == isset($_POST['destination_not'])) { - if ((isset($natent['destination']['any']) && ($ext == "any")) || - ($natent['destination']['address'] == $ext)) { - $input_errors[] = "There is already an outbound NAT rule with the specified settings."; - break; - } - } - } } if (!$input_errors) { -- cgit v1.1