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

Jigal van Hemert jigal at xs4all.nl
Fri Mar 26 06:47:41 CET 2010


Benjamin Mack wrote:
> BT reference: http://bugs.typo3.org/view.php?id=12794

+1 by reading and testing

Test case:
- create directory in 'root' of website and put an image in that folder
- Use Typoscript like:
10 = IMAGE
10 {
	# file which exists in real folder 'media'
	file = media/typo3bedroom.jpg
}
20 = IMAGE
20 {
	#file in real folder fileadmin
	file = fileadmin/other_one.png
}
30 = IMAGE
30 {
	#file in 'magic' folder media (typo3/sysext/cms/tslib/media/...)
	file = media/logos/set.gif
}

The first image didn't work before the patch.

-- 
Jigal van Hemert.


More information about the TYPO3-team-core mailing list