summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-07-28 22:32:21 -0700
committerRenato Botelho <garga@FreeBSD.org>2013-07-29 09:57:29 -0300
commit4d4a9bc798faf746627bc081d29f1c198a7f93d5 (patch)
treedbd8f9968ff2a33ca7dc2e65d244fdc7925f15d0
parent3e7d44fffca94d5d3cfbcbc2bf6bfec99b0bbee0 (diff)
downloadpfsense-4d4a9bc798faf746627bc081d29f1c198a7f93d5.zip
pfsense-4d4a9bc798faf746627bc081d29f1c198a7f93d5.tar.gz
Make NAT port forward data entry error message match GUI text
The GUI has "Redirect target IP" and "Redirect target port". But the error message when validating "Redirect target port" refers to it as "local port". I was just confused when I forgot to type in the "Redirect target port", the error told me I had to enter a valid local port. I looked down the GUI page for "local port" and it is not there.
-rwxr-xr-xusr/local/www/firewall_nat_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 7d6b974..71a6125 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -240,7 +240,7 @@ if ($_POST) {
$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 ((strtoupper($_POST['proto']) == "TCP" || strtoupper($_POST['proto']) == "UDP" || strtoupper($_POST['proto']) == "TCP/UDP") && (!isset($_POST['nordr']) && !is_portoralias($_POST['localbeginport']))) {
- $input_errors[] = sprintf(gettext("A valid local port must be specified. It must be a port alias or integer between 1 and 65535."), $_POST['localbeginport']);
+ $input_errors[] = sprintf(gettext("A valid redirect target port must be specified. It must be a port alias or integer between 1 and 65535."), $_POST['localbeginport']);
}
/* if user enters an alias and selects "network" then disallow. */
OpenPOWER on IntegriCloud