From e4d8f2355bcc2cdb9e98a351f35d3fa9087591b5 Mon Sep 17 00:00:00 2001 From: Nicolas Roeser Date: Fri, 14 Aug 2026 17:32:31 +0200 Subject: [PATCH] Test: Fix for Fix Unescaped HTML In Kiosk View MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commit with the fix for contains an issue: it misses a method call in the chain, thereby passing a string to a factory getter (which is ignored as it is not expected), and passing that factory on instead of a UI component that should be used. Properly obtain the Legacy factory. Then call the appropriate method on it which converts an HTML snippet (as string) to a UI component which can be included in the UI component for the title. See the API documentation for method “content” in ILIAS\UI\Component\Legacy\Factory for why this is chosen. Fixes-Mantis-Issue: https://mantis.ilias.de/view.php?id=48066 Fixes-Mantis-Issue: https://mantis.ilias.de/view.php?id=48174 Fixes-Pull-Request: https://github.com/ILIAS-eLearning/ILIAS/pull/11880 Fixes-Commit: 76f84ae48514e25e5f8d3a33a1b7292822361fc4 Fixes-Commit: d2b2b7e1b61efd802b9d9eb2199d9cf29f1ba5ac --- components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php b/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php index 3c304f0733e2..f094cbd08e36 100755 --- a/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php +++ b/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php @@ -3058,7 +3058,7 @@ protected function getTestPlayerTitle(): string // this is a placeholder solution with inline html tags to differentiate the different elements // should be removed when a title component with grouping and visual weighting is available // see: https://github.com/ILIAS-eLearning/ILIAS/pull/7311 - $pax_name_value = $this->ui_factory->legacy( + $pax_name_value = $this->ui_factory->legacy()->content( sprintf( "%s", $this->refinery->encode()->htmlSpecialCharsAsEntities()->transform($this->user->getFullname())