[BUGFIX] Use parse_url to determine absolute urls in ImageService 77/41777/5
authorFrans Saris <franssaris@gmail.com>
Tue, 21 Jul 2015 11:50:22 +0000 (13:50 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 21 Jul 2015 16:58:05 +0000 (18:58 +0200)
commit4b6dc6bf0df7d5fc4c3cab9721e120a401a96fd3
tree1a7979136a1e6bbf87b8096ec4705ad64b57ab89
parent7374c3a6ec673c3bb7cf5395856b27ea5fc30533
[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/41777
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Classes/Service/ImageService.php
typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php [new file with mode: 0644]