[TYPO3-core] RFC #12794: t3lib_TStemplate::getFileName() handles path starting with 'media/' as magic

Susanne Moog typo3 at susanne-moog.de
Mon Mar 1 17:30:33 CET 2010


Hi Benni,

Benjamin Mack wrote:
> Hey all,
> 
> this is a SVN patch request.
> 
> Type: bugfix
> 
> Branches: trunk / TYPO3_4-3
> 
> Severity: low
> 
> BT reference: http://bugs.typo3.org/view.php?id=12794
> 
> Problem:
> The function t3lib_TStemplate::getFileName() considers any path starting
> with 'media/' like it is a shortcut to 'typo3/sysext/cms/tslib/media/'
> (which was the case in older TYPO3 installations).
> 
> Solution:
> Check if the magic is needed (that means, check if the file really
> doesn't exist), don't use hardcoded paths to the CMS sysext and make the
> code more readable by putting the if statements in multiple lines.

Any hints on how to test this?

Best regards,

Susanne


More information about the TYPO3-team-core mailing list