From a9f2bb677b5f721ad0c47b52cdf35fca11c64d2d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 20 Mar 2013 00:15:33 +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 3678424c95..df1a11fccc 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