[TYPO3-core] FYI24: Bug #16703: TCEForms->getIconHTML() does not resolve back paths before checking static files
Jeff Segars
jsegars at alumni.rice.edu
Wed Dec 8 22:04:02 CET 2010
Hey guys,
The following SVN patch request will be committed in 24 hours if no one
objects.
Type: Bugfix
Bugtracker reference: http://bugs.typo3.org/view.php?id=16703
Branch: trunk
Problem:
TCEForms->getIconHTML() returns the HTML for a static image file or a
sprite icon. When checking for a static image file, the back path is not
resolved before calling is_file() so references such as
"../uploads/path/to/my/file.png" will fail.
This is most easily reproduced with TemplaVoila and preview icons for
Data Structures and Template Objects.
Solution:
Let t3lib_div::resolveBackPath process the path before we check if it is
a file.
Thanks,
Jeff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16703.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101208/810ce572/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: After.png
Type: image/png
Size: 37477 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101208/810ce572/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Before.png
Type: image/png
Size: 38664 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101208/810ce572/attachment-0003.png>
More information about the TYPO3-team-core
mailing list