Re: [PHP] Check RAW data

2008-04-22 Thread rb
Malicious code can still be embedded in images. The vulnerabilities ISTR are in Windows image handling libraries. I assume they've been fixed now though because it was some time ago. But that doesn't mean to say more won't be found. Could you suggest me a good piece of code to check the PNG

[PHP] Check RAW data

2008-04-20 Thread rb
I'm getting from an external source a PNG image in raw format (encoded in base64). And with this code I'll echo on the screen. -- $img=base64_decode($_POST['img']); header("Content-type: image/png"); echo $img; -- How can I check if the data received is a real PNG raw (and not malicio