diff options
author | jim-p <jim@pingle.org> | 2010-04-21 09:44:28 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-04-21 09:44:28 -0400 |
commit | 74e861e30bb58eb1513bb806e04a471cda1578ec (patch) | |
tree | 5b90d1b11ac4e647fd63baa858a625430a0da8f9 | |
parent | f40980ad694b9814261cbaef239a85256d20e9f7 (diff) | |
download | pfsense-74e861e30bb58eb1513bb806e04a471cda1578ec.zip pfsense-74e861e30bb58eb1513bb806e04a471cda1578ec.tar.gz |
Validate imported URL data. Resolves #530.
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 3 |
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; } |