summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-04-21 09:44:28 -0400
committerjim-p <jim@pingle.org>2010-04-21 09:44:28 -0400
commit74e861e30bb58eb1513bb806e04a471cda1578ec (patch)
tree5b90d1b11ac4e647fd63baa858a625430a0da8f9
parentf40980ad694b9814261cbaef239a85256d20e9f7 (diff)
downloadpfsense-74e861e30bb58eb1513bb806e04a471cda1578ec.zip
pfsense-74e861e30bb58eb1513bb806e04a471cda1578ec.tar.gz
Validate imported URL data. Resolves #530.
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 598e162..d26fbb0 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -197,7 +197,8 @@ if ($_POST) {
$tmp_split = split("#", $tmp);
$tmp = trim($tmp_split[0]);
}
- if(trim($tmp) <> "") {
+ $tmp = trim($tmp);
+ if(!empty($tmp) && (is_ipaddr($tmp) || is_subnet($tmp))) {
$address[] = $tmp;
$isfirst = 1;
}
OpenPOWER on IntegriCloud