From: Vincent Vanwaelscappel Date: Thu, 5 Jun 2025 16:30:29 +0000 (+0200) Subject: wip #7586 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ade974bc37baed4517a377e67c26de8bab22ac88;p=cubist_scorm.git wip #7586 @0.25 --- diff --git a/src/Manifest.php b/src/Manifest.php index 4d6b005..a290df3 100644 --- a/src/Manifest.php +++ b/src/Manifest.php @@ -84,8 +84,8 @@ class Manifest ADL SCORM 2004 ' . $v . ' Edition - - + + ' . $this->_escape($this->getTitle()) . ' ' . $this->_escape($this->getTitle()) . ' @@ -133,8 +133,8 @@ class Manifest ADL SCORM 1.2 - - + + ' . $this->_escape($this->getTitle()) . ' ' . $this->_escape($this->getTitle()) . ' @@ -151,6 +151,11 @@ class Manifest return $res; } + protected function _escapeOrganization($org) + { + return preg_replace('/[^a-z0-9_]/i', '', $org); + } + protected function _escape($string, $flags = ENT_XML1) { return htmlspecialchars($string, $flags);