#97303ContentObjectRenderer http_makelinks replace https URLs with http URLs
Description
having a Fluid-Template with
<f:format.html>https://foo.bar.de/</f:format.html>
renders
<p><a href="http://foo.bar.de/" target="_blank" rel="noreferrer">foo.bar.de</a></p>
same error when using lib.parseFunc instead of lib.parseFunc_RTE
<f:format.html parseFuncTSPath="lib.parseFunc">https://foo.bar.de/</f:format.html>
renders:
<a href="http://foo.bar.de/" target="_blank" rel="noreferrer">foo.bar.de</a>
i think the schema should be readdet when calling typolink in http_makelinks
index debc7b9e74..48c3f1ec02 100644
--- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
+++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
@@ -3743,7 +3743,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
}
}
$typolinkConfiguration = $conf;
- $typolinkConfiguration['parameter'] = $parts[0];
+ $typolinkConfiguration['parameter'] = $scheme . $parts[0];
$textstr .= $this->typoLink($linktxt, $typolinkConfiguration) . $parts[1];
} else {
$textstr .= $scheme . $textpieces[$i];Reviews 6
- 11.5 74466[TASK] Add unit tests for mailto_makelinks
- main 74371[TASK] Add unit tests for mailto_makelinks
- main 74376[BUGFIX] Use proper LinkFactory setup for newly added unit tests
- main 74181[BUGFIX] Keep schema in http_makelinks
- 10.4 74311[BUGFIX] Keep schema in http_makelinks
- 11.5 74310[BUGFIX] Keep schema in http_makelinks