Issue Bug Closed

#21360Image Generation broken with PHP safe_mode = On / Graphicsmagick

Morton Jonuschat 10/26/09, 10:50 updated 07/02/10, 11:17

Description

Due to the security fixes in TYPO3 4.2.10 image handling the rendering of Images and Thumbnails is severly broken.

As far as I can reproduce this is due to the unconditional use of escapeshellcmd() in the wrapFileName() Functions of t3lib_stdgraphic and thumbs.php.

As one can read on http://www.php.net/manual/en/features.safe-mode.functions.php escapeshellcmd() automatically gets called for the PHP exec() / system() / popen() / passthru() etc.

When safe_mode = On this results in escapeshellcmd() being called twice on the arguments. As the shell only unescapes the command once this results in invalid parameters being passed, which causes at least GraphicsMagick to hang infinitly.

(issue imported from #M12341)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.