Skip to content
Snippets Groups Projects
Commit 47ba4aea authored by Stefan Bürk's avatar Stefan Bürk Committed by Benni Mack
Browse files

[BUGFIX] Avoid calling htmlspecialchars(null) in InputTextElement

InputTextElement::render() calls htmlspecialchars() to output the
itemValue. $itemValue can be null null instead of a string at this
place and feeding null to htmlspecialchars() emits a E_DEPRECATED
PHP 8.1 error. Sanitize call.

Resolves: #95929
Releases: master
Change-Id: I96eeb6fb0b19e5f751b68e835a59726c7a4657b6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72106


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 361cd30c
Branches
Tags
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