Skip to content
Snippets Groups Projects
Commit 04818c84 authored by Andreas Fernandez's avatar Andreas Fernandez
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
Releases: main
Change-Id: I4261d16bfa819fd1151bbe6905b97f2571701fee
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74174


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 0170fc5a
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