Skip to content

Commit

Permalink
MDL-64372 userpix: Escape fullname string on userpix index page
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhawkins authored and Jenkins committed Jan 8, 2019
1 parent 502650a commit 14f9bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userpix/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

$rs = $DB->get_recordset_select("user", "deleted = 0 AND picture > 0", array(), "lastaccess DESC", user_picture::fields());
foreach ($rs as $user) {
$fullname = fullname($user);
$fullname = s(fullname($user));
echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&amp;course=1\" ".
"title=\"$fullname\">";
echo $OUTPUT->user_picture($user);
Expand Down

0 comments on commit 14f9bad

Please sign in to comment.