[TYPO3-core] RFC #15772 bug: template::getHtmlTemplate() doesn't allow absolute file paths

Jigal van Hemert jigal at xs4all.nl
Tue Sep 28 09:41:48 CEST 2010


Hi,

This is a SVN patch request.

Type: Bugfix / Tweak

BT reference: http://bugs.typo3.org/view.php?id=15772

Branches: trunk (older branches if RM sees it fit)

Problem:
template::getHhtmlTemplate() only allows templates which are relative to 
PATH_typo3 or relative to an extension (using the EXT: prefix)

Solution:
Add the possibility to use absolute paths. This path is checked against 
the allowed absolute path (lockRootPath).

How to test:
In a BE module in the main() function the template is usually loaded with:
$this->doc->setModuleTemplate( <filename> );
This calls getHtmlTemplate internally. Providing an absolute path which 
is inside the lockRootPath works after the patch.

Note:
This is a modification of the original patch by Peter Russ which can be 
found in the bugtracker issue.

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15772_v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100928/39cf1505/attachment.txt>


More information about the TYPO3-team-core mailing list