summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-03-27 14:38:25 -0300
committerRenato Botelho <renato@netgate.com>2017-03-27 14:38:25 -0300
commit33cb7cc2728d4b6faf502d21c480781765dd7577 (patch)
tree104113cdadb885f5eeeb89e738bf9b76cdbb0be2 /src/usr/local/www/firewall_nat_out_edit.php
parentf15da5f3bbe504d3db90c10cbc6b5dbeedb499fd (diff)
parentcc4bf28e0cf2a4aff933d0f265b2d7667d612e64 (diff)
downloadpfsense-33cb7cc2728d4b6faf502d21c480781765dd7577.zip
pfsense-33cb7cc2728d4b6faf502d21c480781765dd7577.tar.gz
Merge pull request #3671 from phil-davis/handle-empty-port-alias-RELENG_2_3
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_out_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php
index aa23717..7b28e7a 100644
--- a/src/usr/local/www/firewall_nat_out_edit.php
+++ b/src/usr/local/www/firewall_nat_out_edit.php
@@ -206,15 +206,15 @@ if ($_POST) {
$_POST['natport'] = trim($_POST['natport']);
}
- if ($protocol_uses_ports && $_POST['sourceport'] <> "" && !(is_portoralias($_POST['sourceport']) || is_portrange($_POST['sourceport']))) {
+ if ($protocol_uses_ports && $_POST['sourceport'] <> "" && !is_portorrangeoralias($_POST['sourceport'])) {
$input_errors[] = gettext("A valid port or port alias must be supplied for the source port entry.");
}
- if ($protocol_uses_ports && $_POST['dstport'] <> "" && !(is_portoralias($_POST['dstport']) || is_portrange($_POST['dstport']))) {
+ if ($protocol_uses_ports && $_POST['dstport'] <> "" && !is_portorrangeoralias($_POST['dstport'])) {
$input_errors[] = gettext("A valid port or port alias must be supplied for the destination port entry.");
}
- if ($protocol_uses_ports && $_POST['natport'] <> "" && !(is_portoralias($_POST['natport']) || is_portrange($_POST['natport'])) && !isset($_POST['nonat'])) {
+ if ($protocol_uses_ports && $_POST['natport'] <> "" && !is_portorrangeoralias($_POST['natport']) && !isset($_POST['nonat'])) {
$input_errors[] = gettext("A valid port must be supplied for the NAT port entry.");
}
OpenPOWER on IntegriCloud