Project

General

Profile

Actions

Bug #71850

closed

typolink.forceAbsoluteUrl doesn't force absolute url

Added by Sebastian Michaelsen almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
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'] === '') {


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #71843: forceAbsoluteUrl has no effectClosedMathias Schreiber2015-11-25

Actions
Actions

Also available in: Atom PDF