Re: Re: security of uploaded gif files
| From: | Gerry Danen | Date: | Mon, 23 Jan 2006 19:08:28 +0000 |
| Subject: | Re: Re: security of uploaded gif files | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229117@lists.php.net to get a copy of this message | ||
There's a couple of things a person can do.
1. check for .gif extention
2. see if exif_imagetype() returns type IMAGETYPE_GIF
3. see if getimagesize() returns reasonable values and not FALSE
4. check the file content for binary vs text content
Gerry