MDL-24059 stripslashes TODO notes
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user