Issue Bug Closed

#94920"Register SoftReference parsers via DI breaks" breaks backend

Frank Nägler 08/18/21, 09:04 updated 09/07/21, 07:32

Description

Since this change was merged:

https://review.typo3.org/c/Packages/TYPO3.CMS/+/70177

Save content elements in the backend is broken in case the text contains plain links like https://typo3.com

An example from our site:

<p>Data transmission to the US is based on the Standard Contractual Clauses (SCC) of&nbsp; the European Commission. Details can be found here:&nbsp;<br /> https://policies.google.com/privacy/frameworks and<br /> https://privacy.google.com/businesses/controllerterms/mccs/.</p>

Because the preg_split could return false but no guard clause exists, the following exception is thrown:

PHP Warning: Invalid argument supplied for foreach() in /../public/typo3/sysext/core/Classes/DataHandling/SoftReference/UrlSoftReferenceParser.php line 32

Reviews 1