#94920"Register SoftReference parsers via DI breaks" breaks backend
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 the European Commission. Details can be found here: <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
Related issues 4
- Task #94687Deprecate SoftReferenceIndex
- Feature #94741Register SoftReference parsers via DI
- Bug #94919PHP Warning: Invalid argument supplied for foreach() in /sysext/core/Classes/DataHandling/SoftReference/UrlSoftReferenceParser.php line 32
- Bug #95878In linkvalidator, soft reference parser extracts 2 links from rich text with URL as anchor text