Skip to content
Snippets Groups Projects
Commit 41af981c authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Avoid str_replace(..., null) in ContentObjectRenderer

Calling str_replace() with second argument non-string is
deprecated as of PHP 8.1. Sanitize stdWrap_brTag() in
ContentObjectRenderer to avoid a case found by unit tests.

Resolves: #95775
Releases: master
Change-Id: I9353ec28d23ec3b0ef50b8ecf48053ce27f5645e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71973


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 9d559bd5
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