Project

General

Profile

Actions

Bug #93758

closed

postUserFunc type issues

Added by Henrik Elsner about 3 years ago. Updated about 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2021-03-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

https://forge.typo3.org/issues/93513

This patch changed the second argument to empty array instead of null.
In our case we don't have a customized function that resolves something but use `base64_decode()`
This now causes the following error:

PHP Warning: base64_decode() expects parameter 2 to be bool, array given in

The setup to recreate the issue pretty simple

page {
   cssInline {
      1 = TEXT
      // this is: body { background: blue; } -- base64 encoded
      1.value = CmJvZHkgewogICBiYWNrZ3JvdW5kOiBibHVlOwp9Cg==
      1.value.postUserFunc = base64_decode
   }
}

My recommendation would be to revert the change and update the docs like documented in the issue


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #93513: Bug: TypoScript: TypeError if .postUserFunc= without .postUserFunc.xxx= Closed2021-02-15

Actions
Actions

Also available in: Atom PDF