Permalink
Browse files

SCORM MDL-25298 escape html vars correctly - thanks to Xavier Paz for…

… report/fix merged from HEAD
  • Loading branch information...
danmarsden committed Nov 25, 2010
1 parent 14a4e75 commit a2aa8324a41e48856c9f4165b1a29f2c5ca21082
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/lib.php
View
@@ -343,7 +343,7 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
$report .= "\t\t\t<li><ul class='$liststyle'>\n";
foreach($usertrack as $element => $value) {
if (substr($element,0,3) == 'cmi') {
- $report .= '<li>'.$element.' => '.$value.'</li>';
+ $report .= '<li>'.$element.' => '.s($value).'</li>';
}
}
$report .= "\t\t\t</ul></li>\n";

0 comments on commit a2aa832

Please sign in to comment.