From 7fd6df7502ce9bd094d07f46b2c7bae89426ff42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Sat, 23 Feb 2019 12:59:57 +0100 Subject: [PATCH] * [FIX] Wrong encoding when displaying account's password. Thanks to @DDH112 for the feedback. Closes #1257 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- .../web/Controllers/Helpers/Account/AccountPasswordHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/web/Controllers/Helpers/Account/AccountPasswordHelper.php b/app/modules/web/Controllers/Helpers/Account/AccountPasswordHelper.php index a785f39e..c68e3539 100644 --- a/app/modules/web/Controllers/Helpers/Account/AccountPasswordHelper.php +++ b/app/modules/web/Controllers/Helpers/Account/AccountPasswordHelper.php @@ -78,7 +78,7 @@ final class AccountPasswordHelper extends HelperBase $this->view->assign('pass', $imageUtil->convertText($pass)); } else { $this->view->assign('login', $accountData->getLogin()); - $this->view->assign('pass', htmlentities($pass, ENT_COMPAT | ENT_HTML5)); + $this->view->assign('pass', htmlspecialchars($pass, ENT_COMPAT)); } return [