[Typo3] ImageMagick and safemode problem solved - need patch

Peter Russ peter.russ at 4many.net
Thu Jun 9 12:06:23 CEST 2005


Peter Russ wrote:

> Max Lillack wrote:
> 
>> Hi,
>> when I turn safemode on, Imagemagick will not be recognized even when it
>> is located in safe_mode_exec_dir.
>> With the help of the php-mailinglist I figured out that you have to use
>> another syntax:
>>
>> safemode = off: exec(d:/ImageMagick/convert.exe);
>> safemode = on: exec(convert.exe);
>>
>> Because of the safe_mode_exec_dir setting PHP knows the path and just
>> needs the filename as parameter.
>> If safemode is on Typo3 still takes the path and the filename.
>>
>> I took the part of the Install tool where ImageMagick is searched and
>> removed the path. IM is now recognized.
>> The safemode setting is already read by Typo3. Now there must be some
>> switch which make every imagemanipulating function use just the filename
>> and not the path if safemode is on.
>>
>> This is to big for me. I hope someone else who knows how and where Typo3
>> uses Imagemagick can write a patch.
>>
>> Max
> 
> Hallo Max,
> 
> we are using symlinks in safe_mode_exec_dirs to allowed bins in safemode 
> and have no problems with TYPO3 getting e.g. convert automatically. 
> Wihich version of TYPO3 do you run?
> 
> Regs. Peter.
Okay you're on WINDOWS :-(
Sorry no idea on that.
Regs. Peter



More information about the TYPO3-english mailing list