summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-04 13:59:29 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-04 14:01:13 +0000
commit9b45f82198894b23189e65a7117b2dce45b21904 (patch)
tree1eac883427ba23cd9922a0f13ea71fa56bfa4a8b /usr
parent07623d8ee8113a9f3583fbb2f9460954c74d9dd5 (diff)
downloadpfsense-9b45f82198894b23189e65a7117b2dce45b21904.zip
pfsense-9b45f82198894b23189e65a7117b2dce45b21904.tar.gz
Ticket #146 Fix typos ansd copy/pasto errors.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 6966a97..692d197 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -273,14 +273,14 @@ if ($_POST) {
$_POST['dstendport'] = 0;
}
- if ($_POST['srcbeginport'] && !is_portoralias($_POST['srcbeginport']))
- $input_errors[] = "The start source port must be an alias or integer between 1 and 65535.";
- if ($_POST['srcendport'] && !is_portoralias($_POST['srcendport']))
- $input_errors[] = "The end source port must be an alias or integer between 1 and 65535.";
- if ($_POST['dstbeginport'] && !is_portoralias($_POST['dstbeginport']))
- $input_errors[] = "The start destination port must be an alias or integer between 1 and 65535.";
- if ($_POST['dstendport'] && !is_portoralias($_POST['dstbeginport']))
- $input_errors[] = "The end destination port must be an alias or integer between 1 and 65535.";
+ if ($_POST['srcbeginport'] && !is_portoralias($_POST['srcbeginport']))
+ $input_errors[] = "{$_POST['srcbeginport']} is not a valid start source port. It must be a port alias or integer between 1 and 65535.";
+ if ($_POST['srcendport'] && !is_portoralias($_POST['srcendport']))
+ $input_errors[] = "{$_POST['srcendport']} is not a valid end source port. It must be a port alias or integer between 1 and 65535.";
+ if ($_POST['dstbeginport'] && !is_portoralias($_POST['dstbeginport']))
+ $input_errors[] = "{$_POST['dstbeginport']} is not a valid start destination port. It must be a port alias or integer between 1 and 65535.";
+ if ($_POST['dstendport'] && !is_portoralias($_POST['dstendport']))
+ $input_errors[] = "{$_POST['dstendport']} is not a valid end destination port. It must be a port alias or integer between 1 and 65535.";
/* if user enters an alias and selects "network" then disallow. */
if($_POST['srctype'] == "network") {
@@ -294,7 +294,7 @@ if ($_POST) {
if (!is_specialnet($_POST['srctype'])) {
if (($_POST['src'] && !is_ipaddroralias($_POST['src']))) {
- $input_errors[] = "A valid source IP address or alias must be specified.";
+ $input_errors[] = "{$_POST['src']} is not a valid source IP address or alias.";
}
if (($_POST['srcmask'] && !is_numericint($_POST['srcmask']))) {
$input_errors[] = "A valid source bit count must be specified.";
@@ -302,7 +302,7 @@ if ($_POST) {
}
if (!is_specialnet($_POST['dsttype'])) {
if (($_POST['dst'] && !is_ipaddroralias($_POST['dst']))) {
- $input_errors[] = "A valid destination IP address or alias must be specified.";
+ $input_errors[] = "{$_POST['dst']} is not a valid destination IP address or alias.";
}
if (($_POST['dstmask'] && !is_numericint($_POST['dstmask']))) {
$input_errors[] = "A valid destination bit count must be specified.";
@@ -1268,4 +1268,4 @@ include("head.inc");
</script>
<?php include("fend.inc"); ?>
</body>
-</html> \ No newline at end of file
+</html>
OpenPOWER on IntegriCloud