diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index e3990afd4..015fc4105 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -300,6 +300,9 @@ class LoginWebPage extends NiceWebPage $sAuthUser = utils::ReadParam('auth_user', '', false, 'raw_data'); $sToken = utils::ReadParam('token', '', false, 'raw_data'); + $sAuthUserForDisplay = utils::HtmlEntities($sAuthUser); + $sTokenForDisplay = utils::HtmlEntities($sToken); + UserRights::Login($sAuthUser); // Set the user's language $oUser = UserRights::GetUserObject(); @@ -308,7 +311,7 @@ class LoginWebPage extends NiceWebPage $this->add("
".Dict::Format('UI:ResetPwd-Error-WrongLogin', $sAuthUser)."
\n"); + $this->add("".Dict::Format('UI:ResetPwd-Error-WrongLogin', $sAuthUserForDisplay)."
\n"); } else { @@ -320,7 +323,8 @@ class LoginWebPage extends NiceWebPage } else { - $this->add("".Dict::Format('UI:ResetPwd-Error-EnterPassword', $oUser->GetFriendlyName())."
\n"); + $sUserNameForDisplay = utils::HtmlEntities($oUser->GetFriendlyName()); + $this->add("".Dict::Format('UI:ResetPwd-Error-EnterPassword', $sUserNameForDisplay)."
\n"); $sInconsistenPwdMsg = Dict::S('UI:Login:RetypePwdDoesNotMatch'); $this->add_script( @@ -343,8 +347,8 @@ EOF $this->add("