From 14fe1cf16c91054db70c09f76eab9cb10d5ec75d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 6 Jun 2025 12:40:43 +0200 Subject: [PATCH] wait #7586 --- src/Manifest.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/Manifest.php b/src/Manifest.php index 0a76991..215693a 100644 --- a/src/Manifest.php +++ b/src/Manifest.php @@ -67,6 +67,9 @@ class Manifest $this->setOrganization($this->getOrganization() . '_ORG'); } + $org = $this->_escapeIdentifier($this->getOrganization()); + $ref = $this->_escapeIdentifier($this->getReference()); + return ' ADL SCORM 2004 ' . $v . ' Edition - - + + ' . $this->_escape($this->getTitle()) . ' - + ' . $this->_escape($this->getTitle()) . ' @@ -103,7 +106,7 @@ class Manifest - + @@ -119,6 +122,9 @@ class Manifest $this->setOrganization($this->getOrganization() . '_ORG'); } + $org = $this->_escapeIdentifier($this->getOrganization()); + $ref = $this->_escapeIdentifier($this->getReference()); + $res = ' ADL SCORM 1.2 - - + + ' . $this->_escape($this->getTitle()) . ' - + ' . $this->_escape($this->getTitle()) . ' - + @@ -151,7 +157,7 @@ class Manifest return $res; } - protected function _escapeOrganization($org) + protected function _escapeIdentifier($org) { return preg_replace('/[^a-z0-9_]/i', '', $org); } -- 2.39.5