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

Felix Oertel post at typo3felix.de
Fri Mar 26 11:30:02 CET 2010


Hey,

+1 by reading and testing ... what to write here? works ... ;-)

Regards, foertel

Am 21.02.10 21:17, schrieb Benjamin Mack:
> 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.
>
> All the best,
> Benni.


More information about the TYPO3-team-core mailing list