Actions
Task #96520
closedEnforce non-empty configuration in ContentObjectRenderer::parseFunc
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2022-01-12
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Invoking ContentObjectRenderer::parseFunc
without passing any configuration or a reference to some rendering instruction, in general does not make much sense.
Calling this method without any instructions led to various side-effects, e.g. unintentionally enforcing typo3/html-sanitizer
. This problem was amplified when using <f:format.html parseFuncTSPath="">
with an explicitly empty reference which actually did not do anything and behaved the same as <f:format.raw>
.
This change enforces that parseFunc is only invoked with actual instructions. An empty configuration will throw a LogicException and requires corresponding source code or Fluid templates to be adjusted.
Actions