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

[BUGFIX] Avoid calling substr_count(null) in TemplateService

TemplateService::render() calls substr_count() on a array field
retrieved from the database, which may be null instead of a string.
Feeding null to substr_count() emits a E_DEPRECATED PHP 8.1 error.
Sanitize call.

Resolves: #95932
Releases: master
Change-Id: I1429d0f49356922208acf9ccb2ab8b8bbd53043c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72109


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