Skip to content

Commit

Permalink
Fix copy/paste error in variable test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Dec 9, 2016
1 parent 01d9837 commit 650ba8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usr/local/www/firewall_rules_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ function is_aoadv_used($rule_config) {
}
}
if ($_POST['srcbeginport_cust'] && $_POST['srcendport_cust']) {
if (is_alias($_POST['srcendport_cust']) && is_alias($_POST['srcendport_cust']) && $_POST['srcbeginport_cust'] != $_POST['srcendport_cust']) {
if (is_alias($_POST['srcbeginport_cust']) && is_alias($_POST['srcendport_cust']) && $_POST['srcbeginport_cust'] != $_POST['srcendport_cust']) {
$input_errors[] = 'The same port alias must be used in Source port range from: and to: fields';
}
if ((is_alias($_POST['srcbeginport_cust']) && (!is_alias($_POST['srcendport_cust']) && $_POST['srcendport_cust'] != '')) ||
Expand All @@ -514,7 +514,7 @@ function is_aoadv_used($rule_config) {
}
}
if ($_POST['dstbeginport_cust'] && $_POST['dstendport_cust']) {
if (is_alias($_POST['dstendport_cust']) && is_alias($_POST['dstendport_cust']) && $_POST['dstbeginport_cust'] != $_POST['dstendport_cust']) {
if (is_alias($_POST['dstbeginport_cust']) && is_alias($_POST['dstendport_cust']) && $_POST['dstbeginport_cust'] != $_POST['dstendport_cust']) {
$input_errors[] = 'The same port alias must be used in Destination port range from: and to: fields';
}
if ((is_alias($_POST['dstbeginport_cust']) && (!is_alias($_POST['dstendport_cust']) && $_POST['dstendport_cust'] != '')) ||
Expand Down

0 comments on commit 650ba8d

Please sign in to comment.