Skip to content

Commit

Permalink
MDL-71130 quiz_grading: escape user idnumber on display.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden authored and Jenkins committed May 4, 2021
1 parent eaa157d commit f40dfdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/report/grading/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ protected function get_question_heading($attempt, $shownames, $showidnumbers) {
$a = new stdClass();
$a->attempt = $attempt->attempt;
$a->fullname = fullname($attempt);
$a->idnumber = $attempt->idnumber;
$a->idnumber = s($attempt->idnumber);

$showidnumbers = $showidnumbers && !empty($attempt->idnumber);

Expand Down

0 comments on commit f40dfdf

Please sign in to comment.