Commit 65753fa1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use hsc not htmlspecialchars

parent 0b10dfd8
......@@ -277,7 +277,7 @@ else if (!empty($loggedinid)) {
}
if ($userid != $USER->get('id') && $USER->is_admin_for_user($user) && is_null($USER->get('parentuser'))) {
$loginas = get_string('loginasuser', 'admin', htmlspecialchars($user->username));
$loginas = get_string('loginasuser', 'admin', hsc($user->username));
} else {
$loginas = null;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment