Skip to content
Snippets Groups Projects
Commit f9322a10 authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[BUGFIX] Avoid calling htmlspecialchars(null) in GeneralUtility

GeneralUtility::implodeAttributes() calls htmlspecialchars() on the
array values to sanitize them. The values may be null instead of a
string, thus feeding null to htmlspecialchars() emits a E_DEPRECATED
PHP 8.1 error. Sanitize call.

Resolves: #95933
Releases: master
Change-Id: I57f1cdf2eb2e818283f5e1c1305ce4d2f3b9d440
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72110


Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 93f2e05c
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