summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-03-29 15:33:07 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-03-29 15:33:07 -0400
commitd7689b2cbefe5c9fa722138472bfe607933ffd1a (patch)
tree73bc4273a130dd4ed26380424b31debcb3597efb
parent23d09a2e88e77d83c483969837051791e30c1d55 (diff)
downloadpfsense-d7689b2cbefe5c9fa722138472bfe607933ffd1a.zip
pfsense-d7689b2cbefe5c9fa722138472bfe607933ffd1a.tar.gz
Clarify error message by including group type
-rw-r--r--src/usr/local/www/system_groupmanager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/system_groupmanager.php b/src/usr/local/www/system_groupmanager.php
index 639822c..297e0b9 100644
--- a/src/usr/local/www/system_groupmanager.php
+++ b/src/usr/local/www/system_groupmanager.php
@@ -178,13 +178,13 @@ if (isset($_POST['save'])) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
- if ($_POST['gtype'] == local) {
+ if ($_POST['gtype'] != "remote") {
if (preg_match("/[^a-zA-Z0-9\.\-_]/", $_POST['groupname'])) {
- $input_errors[] = gettext("The group name contains invalid characters.");
+ $input_errors[] = sprintf(gettext("The (%s) group name contains invalid characters."), $_POST['gtype']);
}
} else {
if (preg_match("/[^a-zA-Z0-9\.\- _]/", $_POST['groupname'])) {
- $input_errors[] = gettext("The group name contains invalid characters.");
+ $input_errors[] = sprintf(gettext("The (%s) group name contains invalid characters."), $_POST['gtype']);
}
}
OpenPOWER on IntegriCloud