From 9dfd60dbf5a85fd0528d7411a365316752defb83 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 18 Oct 2011 09:33:36 +0200 Subject: [PATCH] Add a check to prevent this gateway code from triggering the address family check. This might not be all that is needed for Ticket #1949 --- usr/local/www/firewall_rules_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 6a2da45726..a419092af4 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -217,7 +217,7 @@ if ($_POST) { } } } - if (($_POST['ipprotocol'] <> "") && ($_POST['gateway'] <> "")) { + if (($_POST['ipprotocol'] <> "") && ($_POST['gateway'] <> "") && (is_ipaddr(lookup_gateway_ip_by_name($_POST['gateway'])))) { if(($_POST['ipprotocol'] == "inet6") && (!is_ipaddrv6(lookup_gateway_ip_by_name($_POST['gateway'])))) { $input_errors[] = gettext("You can not assign the IPv4 Gateway to a IPv6 Filter rule"); }