MDL-79455 tool_uploadcourse: safe preview of uploaded course data.

This commit is contained in:
Paul Holden
2023-10-04 02:05:15 +02:00
committed by Jenkins
parent c1663de71e
commit 5975ced7e1
@@ -173,6 +173,10 @@ class tool_uploadcourse_tracker {
} else {
$outcome = $OUTPUT->pix_icon('i/invalid', '');
}
// Ensure our data is suitable for HTML output.
$data = array_map('s', $data);
echo html_writer::start_tag('tr', array('class' => 'r' . $this->rownb % 2));
echo html_writer::tag('td', $line, array('class' => 'c' . $ci++));
echo html_writer::tag('td', $outcome, array('class' => 'c' . $ci++));