From: piers Date: Wed, 25 Feb 2009 22:56:59 +0000 (+0000) Subject: MDL-18212 - switch to addslashes_js - thanks Tim. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=898b28235535f81d742bcce8b80b8b9de9aec6c1;p=moodle.git MDL-18212 - switch to addslashes_js - thanks Tim. --- diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 5cf623c5fa..23239655ad 100755 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -362,7 +362,7 @@ function scorm_insert_track($userid,$scormid,$scoid,$attempt,$element,$value,$fo } if ($track = $DB->get_record('scorm_scoes_track',array('userid'=>$userid, 'scormid'=>$scormid, 'scoid'=>$scoid, 'attempt'=>$attempt, 'element'=>$element))) { - $track->value = addslashes($value); + $track->value = addslashes_js($value); $track->timemodified = time(); $id = $DB->update_record('scorm_scoes_track',$track); } else { @@ -371,7 +371,7 @@ function scorm_insert_track($userid,$scormid,$scoid,$attempt,$element,$value,$fo $track->scoid = $scoid; $track->attempt = $attempt; $track->element = $element; - $track->value = addslashes($value); + $track->value = addslashes_js($value); $track->timemodified = time(); $id = $DB->insert_record('scorm_scoes_track',$track); } diff --git a/mod/scorm/report.php b/mod/scorm/report.php index 37986e8faa..1c0c1ea660 100755 --- a/mod/scorm/report.php +++ b/mod/scorm/report.php @@ -194,7 +194,7 @@ } echo '
'; if (has_capability('mod/scorm:deleteresponses',$contextmodule)) { - echo '
'; + echo ''; echo ''; print_table($table); echo ''.get_string('selectall', 'quiz').' / ';