* [FIX] Wrong encoding when displaying account's password. Thanks to @DDH112 for the feedback. Closes #1257

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2019-02-23 12:59:57 +01:00
parent 3b14d1d030
commit 7fd6df7502

View File

@@ -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 [