diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-10-18 09:33:36 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-10-18 09:33:36 +0200 |
commit | 9dfd60dbf5a85fd0528d7411a365316752defb83 (patch) | |
tree | 82f6eeb4c02aded1337d6577f8fce8363d033d97 /usr/local/www/firewall_rules_edit.php | |
parent | 7cc56826c8036cac40b95aab8e1c6349741e5e01 (diff) | |
download | pfsense-9dfd60dbf5a85fd0528d7411a365316752defb83.zip pfsense-9dfd60dbf5a85fd0528d7411a365316752defb83.tar.gz |
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
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 6a2da45..a419092 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"); } |