summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-07-05 16:28:45 +0000
committerErmal <eri@pfsense.org>2010-07-05 16:28:45 +0000
commit6775c54e2aa571d76d2fc6dea58f5c5a677997f4 (patch)
treeb569c3cfaf5b94cc3bfb0ce2d71196ce793a405e /usr/local/www/firewall_aliases_edit.php
parentfc4d562bd390b1387574bb9bdb27ebdf1f933fd7 (diff)
downloadpfsense-6775c54e2aa571d76d2fc6dea58f5c5a677997f4.zip
pfsense-6775c54e2aa571d76d2fc6dea58f5c5a677997f4.tar.gz
Fixes #698. Always check if we are dealing with an ip value to then store the subnet in the config.
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index dca3d12..5835bd2 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -267,7 +267,7 @@ if ($_POST) {
$address = array_merge($address, $rangesubnets);
} else {
$tmpaddress = $_POST["address{$x}"];
- if(($_POST['type'] == "network" || is_ipaddr($_POST["address{$x}"])) && $_POST["address_subnet{$x}"] <> "")
+ if(is_ipaddr($_POST["address{$x}"]) && $_POST["address_subnet{$x}"] <> "")
$tmpaddress .= "/" . $_POST["address_subnet{$x}"];
$address[] = $tmpaddress;
}
OpenPOWER on IntegriCloud