Skip to content
Snippets Groups Projects
Commit 6ebd6962 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Christian Kuhn
Browse files

[BUGFIX] Handle flexform in BU::getProcessedValue() only if not null

The contents of a field of type `flex` may be NULL if the field is
empty. `BackendUtility::getProcessedValue()` handles the content of such
`flex` fields now only if the value is an actual string to solve
deprecations related to PHP 8.1.

In the same run, the content is trimmed to get rid of lots of empty
lines caused by multiline XML data.

Resolves: #97297
Resolves: #98595
Releases: main, 11.5
Change-Id: I4261d16bfa819fd1151bbe6905b97f2571701fee
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76125


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 4a4cfea9
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