[TYPO3-core] RFC #12794: t3lib_TStemplate::getFileName() handles path starting with 'media/' as magic
Benjamin Mack
benni at typo3.org
Sun Feb 21 21:17:56 CET 2010
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12794.patch
Type: text/x-patch
Size: 928 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100221/e746189f/attachment.bin>
More information about the TYPO3-team-core
mailing list