diff options
author | Phil Davis <phil.davis@inf.org> | 2017-03-27 22:15:20 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-03-27 22:15:20 +0545 |
commit | 593e9fe32d2959cd823fe5da55714ccfb9a0e958 (patch) | |
tree | c3460883b4543db170ddbac303e199cb6673af33 /src/usr/local/www/firewall_rules_edit.php | |
parent | 7e50d1e7357e4b9dc8a4283971c8bfe0312c5d8b (diff) | |
download | pfsense-593e9fe32d2959cd823fe5da55714ccfb9a0e958.zip pfsense-593e9fe32d2959cd823fe5da55714ccfb9a0e958.tar.gz |
Add underscores to is_port* function names
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index dcc96de..1012906 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -491,16 +491,16 @@ if ($_POST['save']) { $_POST['dstendport'] = 0; } - if ($_POST['srcbeginport'] && !is_portoralias($_POST['srcbeginport'])) { + if ($_POST['srcbeginport'] && !is_port_or_alias($_POST['srcbeginport'])) { $input_errors[] = sprintf(gettext("%s is not a valid start source port. It must be a port alias or integer between 1 and 65535."), $_POST['srcbeginport']); } - if ($_POST['srcendport'] && !is_portoralias($_POST['srcendport'])) { + if ($_POST['srcendport'] && !is_port_or_alias($_POST['srcendport'])) { $input_errors[] = sprintf(gettext("%s is not a valid end source port. It must be a port alias or integer between 1 and 65535."), $_POST['srcendport']); } - if ($_POST['dstbeginport'] && !is_portoralias($_POST['dstbeginport'])) { + if ($_POST['dstbeginport'] && !is_port_or_alias($_POST['dstbeginport'])) { $input_errors[] = sprintf(gettext("%s is not a valid start destination port. It must be a port alias or integer between 1 and 65535."), $_POST['dstbeginport']); } - if ($_POST['dstendport'] && !is_portoralias($_POST['dstendport'])) { + if ($_POST['dstendport'] && !is_port_or_alias($_POST['dstendport'])) { $input_errors[] = sprintf(gettext("%s is not a valid end destination port. It must be a port alias or integer between 1 and 65535."), $_POST['dstendport']); } if (!$_POST['srcbeginport_cust'] && $_POST['srcendport_cust']) { |