From ade974bc37baed4517a377e67c26de8bab22ac88 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 5 Jun 2025 18:30:29 +0200 Subject: [PATCH] wip #7586 @0.25 --- src/Manifest.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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); -- 2.39.5