[TYPO3-core] RFC #9511: Bug: getHtmlTemplate should use resolveBackPath

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Dec 18 09:44:03 CET 2008


Steffen Gebert wrote: on 08.10.2008 09:45:

> This is SVN patch request.
> 
> Type: bug
> 
> Branches: trunk, 4.2
> 
> BT reference: http://bugs.typo3.org/view.php?id=9511
> 
> Problem: 
> getHtmlTemplate() in typo3/template.php calls getURL in the following way:
> t3lib_div::getURL($this->backPath . $filename)
> 
> For tt_news $this->backPath . $filename = "../../../../typo3/../typo3conf/ext/tt_news/mod1/mod_ttneypo3conf/ext/tt_news/mod1/mod_ttnews_admin.html" 
> which can't be opened on some linux servers because of typo3/../
> 
> Solution:
> resolveBackPath() removes "typo3/../" which works.


As this patch has seem to be forgotten, I just tested it too and since
it "works" (even thou bug is not reproducible for me), I commited it to
trunk (rev.4559) and TYPO3 4.2 (rev.4560).

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list