> On Tue, 2009-05-26 at 10:20 +0200, Matus UHLAR - fantomas wrote: > > Well, first issue was only to compare file extension to provided mime type, > > so it would hit .gif file of type image/jpeg > > > > >> or do we need a FileType plugin?
On 26.05.09 11:23, Martin Gregorie wrote: > Yes - comparing MIME image type to the file extension is already > obsolete. Are you sure? Have you made any measures that tell such comparision is useless and has much of FPs? > During the weekend I got a few image spams via a SourceForge mailing > list with MIME type image/jpg and filename something.jpg. gthumb > confirmed these were PNG files. The ImageInfo plugin caught them too. To have good opinion, I'd prefer doing comparision of mismatches between filename/mimetype, mimetype/magic and filename/magic, there could tell us if the first is enough or not. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. 99 percent of lawyers give the rest a bad name.