diff --git a/mod/scorm/aicc.php b/mod/scorm/aicc.php index 3be8ba839a0..1d7b692ca54 100755 --- a/mod/scorm/aicc.php +++ b/mod/scorm/aicc.php @@ -267,7 +267,7 @@ $value .= $datarow."\r\n"; next($datarows); } - $value = rawurlencode(stripslashes($value)); + $value = rawurlencode(stripslashes($value)); // TODO: this is probably wrong, the stripslashes() has undefined meaning now; was this related to JS quoting or magic quotes? $id = scorm_insert_track($USER->id, $scorm->id, $sco->id, $attempt, $element, $value); } } diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 9b3211e1067..63c3707ebd3 100755 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -431,7 +431,7 @@ function scorm_get_tracks($scoid,$userid,$attempt='') { $usertrack->timemodified = 0; foreach ($tracks as $track) { $element = $track->element; - $track->value = stripslashes($track->value); + $track->value = stripslashes($track->value); // TODO: this is probably wrong, the stripslashes() has undefined meaning now; was this related to JS quoting or magic quotes? $usertrack->{$element} = $track->value; switch ($element) { case 'cmi.core.lesson_status':