Project

General

Profile

Actions

Bug #68423

closed

Use parse_url to determine fully qualified urls in ImageService

Added by Frans Saris over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2015-07-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In de ImageService strpos($imageUrl, '://') is used to check if the url is already a absolute url. But because in HTML context/output the schema isn't needed for images this check will fail for //www.my-domain.com/image.jpg.

To also support only // we should use parse_url($imageUrl, PHP_URL_HOST) !== NULL to check if it is an absolute url.

Actions

Also available in: Atom PDF