MDL-71128 mod_quiz: escape question idnumber on display.

This commit is contained in:
Paul Holden
2021-03-16 20:28:50 +00:00
parent 8ee6f49384
commit b665e5aa33
+1 -1
View File
@@ -2069,7 +2069,7 @@ function quiz_question_tostring($question, $showicon = false, $showquestiontext
if ($showidnumber && $question->idnumber !== null && $question->idnumber !== '') {
$result .= ' ' . html_writer::span(
html_writer::span(get_string('idnumber', 'question'), 'accesshide') .
' ' . $question->idnumber, 'badge badge-primary');
' ' . s($question->idnumber), 'badge badge-primary');
}
// Question tags.