Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a problem with altered chars in UTF-8

  • Loading branch information...
commit b36185320d3c572bf244616bbc98e560ce5ae90e 1 parent 6c2ba19
bobopinna authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/scorm/lib.php
View
6 mod/scorm/lib.php
@@ -579,6 +579,9 @@ function scorm_startElement($parser, $name, $attrs) {
function scorm_endElement($parser, $name) {
global $scoes,$i,$level,$datacontent,$manifest,$organization,$version;
+
+ $datacontent = trim($datacontent);
+
if ($name == 'ITEM') {
$level--;
}
@@ -618,11 +621,12 @@ function scorm_endElement($parser, $name) {
$version = 'SCORM_1.2';
}
}
+ $datacontent = '';
}
function scorm_characterData($parser, $data) {
global $datacontent;
- $datacontent = utf8_decode($data);
+ $datacontent .= utf8_decode($data);
}
function scorm_parse($pkgdir,$pkgtype,$scormid){
Please sign in to comment.
Something went wrong with that request. Please try again.