mirror of
https://github.com/moodle/moodle.git
synced 2025-02-01 05:18:06 +01:00
MDL-41820 XSS in the quiz responses report.
Thanks to Michael Hess for finding this bug and reporting it to us.
This commit is contained in:
parent
f859f6b4e6
commit
78a492330d
@ -97,6 +97,11 @@ class quiz_responses_table extends quiz_attempts_report_table {
|
||||
$summary = trim($stepdata->$field);
|
||||
}
|
||||
|
||||
if ($this->is_downloading() && $this->is_downloading() != 'xhtml') {
|
||||
return $summary;
|
||||
}
|
||||
$summary = s($summary);
|
||||
|
||||
if ($this->is_downloading() || $field != 'responsesummary') {
|
||||
return $summary;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user