Skip to content
Browse files

Fixed a storic problem with & during package import

NOW Moodle full support prerequisites
  • Loading branch information...
1 parent 822d3bf commit 18a742f9c679d9f7f02d2e09a071f67d03b66013 bobopinna committed Nov 2, 2006
Showing with 8 additions and 2 deletions.
  1. +8 −2 mod/scorm/locallib.php
View
10 mod/scorm/locallib.php
@@ -1005,9 +1005,15 @@ function scorm_parse_scorm($pkgdir,$scormid) {
if (is_file($manifestfile)) {
- $xmlstring = file_get_contents($manifestfile);
+ $xmltext = file_get_contents($manifestfile);
+
+ $pattern = '/&(?!\w{2,6};)/';
+ $replacement = '&';
+
+ $xmltext = preg_replace($pattern, $replacement, $xmltext);
+
$objXML = new xml2Array();
- $manifests = $objXML->parse($xmlstring);
+ $manifests = $objXML->parse($xmltext);
// print_r($manifests);
$scoes = new stdClass();
$scoes->version = '';

0 comments on commit 18a742f

Please sign in to comment.
Something went wrong with that request. Please try again.