[BUGFIX] Invalid back path of ImageViewHelper in TYPO3 backend 08/37408/3
authorOliver Hader <oliver@typo3.org>
Sun, 1 Mar 2015 13:36:27 +0000 (14:36 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 2 Mar 2015 14:41:50 +0000 (15:41 +0100)
commit4af8a633e9afd8cce97d2f47fed095a37b6be16b
treeb90ec33b815950ddab4e9cf9924e6aef9d02673b
parent68caf38daf765dc9162a20169ab884402c0758bf
[BUGFIX] Invalid back path of ImageViewHelper in TYPO3 backend

If rendering an image in the TYPO3 backend, the regular case is
to prepend "../" to an URI with the assumption that the original
HTTP request was handled by typo3/backend.php.

For the page module for instance, the request points to
typo3/sysext/cms/layout/db_layout.php, thus the back path way
does not work anymore.

To overcome that behavior the absolute path shall be used
instead by determining TYPO3_SITE_PATH. For the case that
some custom processing relies on "../" this change might
be breaking.

Resolves: #65433
Releases: master, 6.2
Change-Id: I969f6a3bdd000b7efb7607e533d1117c8d363959
Reviewed-on: http://review.typo3.org/37408
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Classes/Service/ImageService.php