Bug #24956
closedGifBuilder - meaningfulTempFilePrefix can cause invalid image urls
0%
Description
Hello
I use the GIFBUILDER to generate a Menu with a dynamic text (pagename). If a pagename includes a slash (/) the image-generation will fail, if "meaningfulTempFilePrefix" is activated.
The Problem is the slash in the pagename, which will not be converted for the filename-generation.
Error-message:
Core: Error handler (FE): PHP Warning: imagepng(): Unable to open 'typo3temp/GB/Service/Support_navbg_51124ff245_97eff91762.png' for writing: No such file or directory in /usr/share/typo3/source/typo3_src-4.5.0/t3lib/class.t3lib_stdgraphic.php line 2899
To fix the bug, replace the line 720 in typo3/sysext/cms/tslib/class.tslib_gifbuilder.php:
original line:
$meaningfulPrefix = str_replace(' ', '_', $meaningfulPrefix);
fixed line:
$meaningfulPrefix = str_replace(array(' ','/'), '_', $meaningfulPrefix);
Regards Philipp
(issue imported from #M17483)
Files