summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-28 13:31:26 +0545
committerPhil Davis <phil.davis@inf.org>2016-04-28 13:31:26 +0545
commite1f5381f4ecae20922a379b75820af1c9e57927e (patch)
treef86abba8af25828e1472393c0d41d17b1345ddc5 /src/usr/local/www/system_gateways_edit.php
parenta120c849074acf6121665f47315bd477d0253af6 (diff)
downloadpfsense-e1f5381f4ecae20922a379b75820af1c9e57927e.zip
pfsense-e1f5381f4ecae20922a379b75820af1c9e57927e.tar.gz
Provide better messages for invalid alias name errors
Diffstat (limited to 'src/usr/local/www/system_gateways_edit.php')
-rw-r--r--src/usr/local/www/system_gateways_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php
index f483979..cbbea08 100644
--- a/src/usr/local/www/system_gateways_edit.php
+++ b/src/usr/local/www/system_gateways_edit.php
@@ -147,7 +147,7 @@ if ($_POST) {
$input_errors[] = "A valid gateway name must be specified.";
}
if (!is_validaliasname($_POST['name'])) {
- $input_errors[] = gettext("The gateway name must not contain invalid characters.");
+ $input_errors[] = invalidaliasnamemsg($_POST['name'], gettext("gateway"));
} else if (isset($_POST['disabled'])) {
// We have a valid gateway name that the user wants to mark as disabled.
// Check if the gateway name is used in any gateway group.
OpenPOWER on IntegriCloud