Commit 76017fb7 authored by Rebecca Blundell's avatar Rebecca Blundell

Bug 1694874: Changing html escaping

-Become parentuser when masquerading now displays unescaped quotes
-User name on groupmember thumbnail now displays unescaped quotes

behatnotneeded

Change-Id: Idca76c9e31c0a7794416cafc8e8d66f6315611be
parent 1e54fdc4
......@@ -931,7 +931,7 @@ EOF;
$smarty->assign('USERMASQUERADING', true);
$smarty->assign('masqueradedetails', get_string('youaremasqueradingas', 'mahara', display_name($USER)));
$smarty->assign('becomeyoulink', hsc($wwwroot) . 'admin/users/changeuser.php?restore=1');
$smarty->assign('becomeyouagain', get_string('becomeadminagain', 'admin', hsc($USER->get('parentuser')->name)));
$smarty->assign('becomeyouagain', get_string('becomeadminagain', 'admin', $USER->get('parentuser')->name));
}
// Define additional html content
......
......@@ -3,7 +3,7 @@
{foreach from=$groupmembers item=groupmember}
<a href="{profile_url($groupmember)}" class="item user-icon metadata user-icon-larger">
<img src="{profile_icon_url user=$groupmember maxwidth=100 maxheight=100}" alt="{str tag=profileimagetext arg1=$groupmember|display_default_name}" title="{$groupmember|display_default_name|escape}">
<p class="member-name">{$groupmember|display_default_name|escape}</p>
<p class="member-name">{$groupmember|display_default_name}</p>
</a>
{/foreach}
</div>
......
Markdown is supported
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