Actions
Bug #71850
closedtypolink.forceAbsoluteUrl doesn't force absolute url
Start date:
2015-11-26
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
This is were it broke: https://github.com/TYPO3/TYPO3.CMS/commit/dacd79bc67c814a4f622dc6bd299ceb521aa325f#diff-fb30f860811e026eb162ad4095fa44e4R6692
parse_url() doesn't always return a host. With the weak comparison it matched the empty string.
Should be something like:
if (!isset($urlParts['host']) || $urlParts['host'] === '') {
Actions