Skip to content
Snippets Groups Projects
Commit d4f20bb7 authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Oliver Bartsch
Browse files

[BUGFIX] Prevent TypeError int values of backend user settings

PHP will cast array keys to int if they are valid integers.
The code applies htmlspecialchars() on the keys.
The function expects a string as first argument, which wouldn't be the
case if the actual value would be an int.

Therefore the key is casted to a string within the function call to
prevent TypeError.

Resolves: #104341
Releases: main, 12.4
Change-Id: Ic9aef0fd37f2e883a2a8fa626cfda2e813e3b289
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85194


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 04d45872
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment