Subject: [PATCH] [TASK] check $typolink before trimming --- Index: typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php b/typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php --- a/typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php (revision 74d2ab6c035d69027704d77a74bd402f909f1f2e) +++ b/typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php (date 1676632613554) @@ -77,7 +77,7 @@ */ public function decode($typoLink) { - $typoLink = trim($typoLink); + $typoLink = !is_null($typoLink) ? trim($typoLink) : ''; if ($typoLink !== '') { $parts = str_replace(['\\\\', '\\"'], ['\\', '"'], str_getcsv($typoLink, static::$partDelimiter)); } else {