Skip to content

Test 48066: Fix Unescaped HTML In Kiosk View - #11880

Merged
kergomard merged 1 commit into
ILIAS-eLearning:release_10from
matheuszych:ta/48066
Aug 10, 2026
Merged

Test 48066: Fix Unescaped HTML In Kiosk View#11880
kergomard merged 1 commit into
ILIAS-eLearning:release_10from
matheuszych:ta/48066

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

See: https://mantis.ilias.de/view.php?id=48066

The participant name in the test kiosk title was inserted as raw HTML, which could break rendering when the name contained special characters. The value is now escaped and passed via a legacy UI component.

/cc @thojou

See: https://mantis.ilias.de/view.php?id=48066

The participant name in the test kiosk title was inserted as raw HTML,
which could break rendering when the name contained special characters.
The value is now escaped and passed via a legacy UI component.
@matheuszych

Copy link
Copy Markdown
Contributor Author

Hello @kergomard ,

could you please take a look at the changes and review them?
There are no lang file changes, so there is no reason for the pipeline to fail other than already existing core changes.

Thank you in advance.

Best regards
@matheuszych

@dsstrassner dsstrassner added bugfix php Pull requests that update Php code labels Aug 10, 2026

@kergomard kergomard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matheuszych

This LGTM.

Best,
@kergomard

@kergomard
kergomard merged commit e7043ff into ILIAS-eLearning:release_10 Aug 10, 2026
1 of 3 checks passed
@kergomard

Copy link
Copy Markdown
Contributor

Merged and picked to ILIAS 11 and trunk.

@nicoroeser

Copy link
Copy Markdown
Contributor

Thanks for your work on this!

Though, pardon me, but has this code ever been tested? See #11918 for a suggested addition to the fix.

phntxx pushed a commit to ur-campus-it/ILIAS that referenced this pull request Aug 14, 2026
The commit with the fix for <https://mantis.ilias.de/view.php?id=48066>
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: ILIAS-eLearning#11880
Fixes-Commit: 76f84ae
Fixes-Commit: d2b2b7e
kergomard pushed a commit that referenced this pull request Aug 17, 2026
The commit with the fix for <https://mantis.ilias.de/view.php?id=48066>
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: #11880
Fixes-Commit: 76f84ae
Fixes-Commit: d2b2b7e
kergomard pushed a commit that referenced this pull request Aug 17, 2026
The commit with the fix for <https://mantis.ilias.de/view.php?id=48066>
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: #11880
Fixes-Commit: 76f84ae
Fixes-Commit: d2b2b7e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants