mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
SCORM MDL-25298 escape html vars correctly - thanks to Xavier Paz for report/fix
This commit is contained in:
parent
683513daee
commit
a7ab614d3a
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
|
||||||
$report .= "\t\t\t<li><ul class='$liststyle'>\n";
|
$report .= "\t\t\t<li><ul class='$liststyle'>\n";
|
||||||
foreach($usertrack as $element => $value) {
|
foreach($usertrack as $element => $value) {
|
||||||
if (substr($element,0,3) == 'cmi') {
|
if (substr($element,0,3) == 'cmi') {
|
||||||
$report .= '<li>'.$element.' => '.$value.'</li>';
|
$report .= '<li>'.$element.' => '.s($value).'</li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$report .= "\t\t\t</ul></li>\n";
|
$report .= "\t\t\t</ul></li>\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue