Thread:Project:Support desk/How to prevent code injection when executing programs from extesnion

Hi! I need to run ImageMagick from my extension. Is there any standard way to run programs from mediawiki scripts that will escape everything that is needed or should I use  and care about the security by myself?