MDL-55057 mod_scorm: fix handling of SCO identifiers with apostrophes

This commit is contained in:
Davo Smith
2016-07-04 13:14:27 +08:00
committed by Andrew Nicols
parent 388367917d
commit b3a751da05
+1 -1
View File
@@ -139,7 +139,7 @@ function scorm_get_manifest($blocks, $scoes) {
$scoes->elements[$manifest][$organization][$identifier]->launch = '';
$scoes->elements[$manifest][$organization][$identifier]->scormtype = 'asset';
} else {
$idref = $block['attrs']['IDENTIFIERREF'];
$idref = addslashes_js($block['attrs']['IDENTIFIERREF']);
$base = '';
if (isset($resources[$idref]['XML:BASE'])) {
$base = $resources[$idref]['XML:BASE'];