From 0f188afa98b5683293501fb3cca72a8988cbcc66 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 20 Mar 2013 00:16:29 +0800 Subject: [PATCH] Bug 852445: Mime type detection truncates the first 32 bytes from attachments r=LpSolit,r=LpSolit --- Bugzilla/Attachment.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index e7e707b985..380ef3d4cf 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -546,6 +546,7 @@ sub _check_content_type { } my $mimetype = mimetype($fh); + $fh->seek(0, 0); $content_type = $mimetype if $mimetype; } -- 2.47.2