Avoid html escaping values used only for comparing

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-12-01 14:30:40 +01:00
parent e4fa7a0ba5
commit 0b956b5fc0

View File

@ -4526,8 +4526,8 @@ function PMA_getHtmlHeaderForUserProperties(
}
$html_output .= '</h2>' . "\n";
$cur_user = htmlspecialchars($GLOBALS['dbi']->getCurrentUser());
$user = htmlspecialchars($username . '@' . $hostname);
$cur_user = $GLOBALS['dbi']->getCurrentUser();
$user = $username . '@' . $hostname;
// Add a short notice for the user
// to remind him that he is editing his own privileges
if ($user === $cur_user) {