From 92b9f237ef1bfb3dc82f88ece53845bfaafd5d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Wed, 22 Jul 2009 18:24:40 +0000 Subject: Allow to enter names in these fields for letting nested aliases to be specified. --- usr/local/www/firewall_aliases_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www') diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 6865d47..90c0673 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -195,7 +195,7 @@ if ($_POST) { if ($isfirst > 0) $address .= " "; $address .= $_POST["address{$x}"]; - if($_POST["address_subnet{$x}"] <> "") + if(is_ipaddr($_POST["address{$x}"]) && $_POST["address_subnet{$x}"] <> "") $address .= "/" . $_POST["address_subnet{$x}"]; if($_POST["detail{$x}"] <> "") { -- cgit v1.1