Project

General

Profile

Bug #99975 » checkTypolinkBeforeTrimming.patch

patch to check !is_null($typolink) - Sven Ignor, 2023-02-17 11:20

View differences:

typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php (revision 74d2ab6c035d69027704d77a74bd402f909f1f2e) → typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php (date 1676632613554)
*/
public function decode($typoLink)
{
$typoLink = trim($typoLink);
$typoLink = !is_null($typoLink) ? trim($typoLink) : '';
if ($typoLink !== '') {
$parts = str_replace(['\\\\', '\\"'], ['\\', '"'], str_getcsv($typoLink, static::$partDelimiter));
} else {
    (1-1/1)