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

This commit is contained in:
Davo Smith
2016-06-29 08:44:24 +01:00
parent b8474fe0c7
commit 3bc7382d10
+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'];