[BUGFIX] Re-enable absolute external links
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / ContentObjectRenderer.php
index 2f8fdba..1d518d0 100644 (file)
@@ -5071,7 +5071,7 @@ class ContentObjectRenderer {
                                // tags
                                $len = strcspn(substr($theValue, $pointer), '>') + 1;
                                $data = substr($theValue, $pointer, $len);
-                               if (substr($data, -2) === '/>') {
+                               if (StringUtility::endsWith($data, '/>') && !StringUtility::beginsWith($data, '<link ')) {
                                        $tagContent = substr($data, 1, -2);
                                } else {
                                        $tagContent = substr($data, 1, -1);