summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-09-10 17:02:44 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-09-10 17:02:44 -0300
commit9060f420a9444c68fc8db926787d0bb37d77ed72 (patch)
treebb1f2a7ab491f4ecf160d486833560a16c3e6471 /usr/local/www/firewall_aliases_edit.php
parent846dc21c3d6dd134faa9641715f203458d80add5 (diff)
downloadpfsense-9060f420a9444c68fc8db926787d0bb37d77ed72.zip
pfsense-9060f420a9444c68fc8db926787d0bb37d77ed72.tar.gz
Change is_port() to only validate a single port, we have is_portrange() for specific cases. Make necessary adjustments after check all is_port() calls. It fixes #3857
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 3479e8d..fc35612 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -294,7 +294,7 @@ if ($_POST) {
preg_match("/urltable/i", alias_get_type($_POST["address{$x}"]))))
$wrongaliases .= " " . $_POST["address{$x}"];
} else if ($_POST['type'] == "port") {
- if (!is_port($_POST["address{$x}"]))
+ if (!is_port($_POST["address{$x}"]) && !is_portrange($_POST["address{$x}"]))
$input_errors[] = $_POST["address{$x}"] . " " . gettext("is not a valid port or alias.");
} else if ($_POST['type'] == "host" || $_POST['type'] == "network") {
if (is_subnet($_POST["address{$x}"]) || (!is_ipaddr($_POST["address{$x}"])
OpenPOWER on IntegriCloud