Skip to content
Snippets Groups Projects
Commit c284a977 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[TASK] Clean up parseFunc functionality in ContentObjectRenderer

This change
* simplifies allowTags and denyTags in lib.parseFunc
  by comparing with in_array rather than "inList()"
  for EVERY tag!
* Remove superfluous if() statements
  - GeneralUtility::get_tag_attributes always returns an array
  - substr does not return "false" but an empty string since PHP 8.0

Resolves: #104170
Releases: main
Change-Id: I1980ab3b8ea6fd4a836782475dd4c61b07f50ed3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84814


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent d7187dc7
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