Issue Bug Closed

#71850typolink.forceAbsoluteUrl doesn't force absolute url

Sebastian Michaelsen 11/26/15, 10:35 updated 11/26/15, 10:48

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'] === '') {

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.