summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_authentication.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-05 13:20:57 +0545
committerPhil Davis <phil.davis@inf.org>2017-02-05 13:20:57 +0545
commit5db70796baec8e35f27dd64c068af20d8c832dbf (patch)
treef7cba526d745714baba6c1f0ef80a34c315ce8f5 /src/usr/local/www/diag_authentication.php
parentdfbc9267d3838088f551de0a53021486b0e7c3df (diff)
downloadpfsense-5db70796baec8e35f27dd64c068af20d8c832dbf.zip
pfsense-5db70796baec8e35f27dd64c068af20d8c832dbf.tar.gz
Remove HTML from strings in diags files
Diffstat (limited to 'src/usr/local/www/diag_authentication.php')
-rw-r--r--src/usr/local/www/diag_authentication.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_authentication.php b/src/usr/local/www/diag_authentication.php
index 455b8a0..3da5e58 100644
--- a/src/usr/local/www/diag_authentication.php
+++ b/src/usr/local/www/diag_authentication.php
@@ -35,7 +35,7 @@ if ($_POST) {
$authcfg = auth_get_authserver($_POST['authmode']);
if (!$authcfg) {
- $input_errors[] = $_POST['authmode'] . " " . gettext("is not a valid authentication server");
+ $input_errors[] = sprintf(gettext('%s is not a valid authentication server'), $_POST['authmode']);
}
if (empty($_POST['username']) || empty($_POST['password'])) {
@@ -45,7 +45,7 @@ if ($_POST) {
if (!$input_errors) {
$attributes = array();
if (authenticate_user($_POST['username'], $_POST['password'], $authcfg, $attributes)) {
- $savemsg = gettext("User") . ": " . $_POST['username'] . " " . gettext("authenticated successfully.");
+ $savemsg = sprintf(gettext('User %s authenticated successfully.'), $_POST['username']);
$groups = getUserGroups($_POST['username'], $authcfg, $attributes);
$savemsg .= "&nbsp;" . gettext("This user is a member of groups") . ": <br /><br />";
$savemsg .= "<ul>";
OpenPOWER on IntegriCloud