Skip to content
Snippets Groups Projects
Commit d1ce5264 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[BUGFIX] Avoid strict type exception in Import

$tokenizedContent could be null and would already cause an undefined
array key warning. When passed to the strlen method, this even causes
an exception.

This patch adds a null coalesce operator with an empty string as default
and replaces the odd strlen bool expression with a strict comparison to
an empty string.

Resolves: #102461
Releases: main, 12.4
Change-Id: I88464956395240990a51bdb334502cd58da347bf
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81895


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 1e1e084c
Branches
Tags
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