summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-07-28 22:32:21 -0700
committerPhil Davis <phil.davis@world.inf.org>2013-07-28 22:32:21 -0700
commitd750dd6f936720ddd28dcc87eefe4f07f42f6435 (patch)
tree5ab8d75653afe60d40d695c29ffe2f5cf2cd7684 /usr/local/www/firewall_nat_edit.php
parent9761b8334d494293ba607d71449b73b5706f9f54 (diff)
downloadpfsense-d750dd6f936720ddd28dcc87eefe4f07f42f6435.zip
pfsense-d750dd6f936720ddd28dcc87eefe4f07f42f6435.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.
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-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 42da1ba..d435d80 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