[BUGFIX] Use parse_url to determine absolute urls in ImageService 71/41771/4
authorFrans Saris <franssaris@gmail.com>
Tue, 21 Jul 2015 11:50:22 +0000 (13:50 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 21 Jul 2015 14:30:47 +0000 (16:30 +0200)
commit4e169b7637c28082273431abc03f892d7c3cb2f3
treed58b96f2f868b2d5b9c4ff2254c8cc5956e5f2b5
parent9d917c85649ebdb42fb114a6fd500676e72ab9bc
[BUGFIX] Use parse_url to determine absolute urls in ImageService

Since it is possible to have protocol relative URIs and parse_url
only identifies a hostname once a scheme or scheme relative prefix is
applied, we can check for a hostname here.

Resolves: #68423
Releases: master, 6.2
Change-Id: I3eb51d9b5175657454657bbd7f75cfafa6bd9760
Reviewed-on: http://review.typo3.org/41771
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/extbase/Classes/Service/ImageService.php
typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php [new file with mode: 0644]