[PHP] IMagick confusion

2008-11-22 Thread Stan
This code (invoked by an IMG tag on a page) will return the image which is then displayed: ?php $picture = $_GET['PICTURE']; /* need to get filetype from querystring picture= */ header('Content-type:

Re: [PHP] IMagick confusion

2008-11-22 Thread Yeti
First of all .. always be careful with tainted data. Like when you $picture = $_GET['PICTURE']; be aware that this could be a security risk one day an ImageMagick exploid is circulating. At the first glance I saw a syntactical thingy that might cause problems .. case default: break; In PHP