From a9f2bb677b5f721ad0c47b52cdf35fca11c64d2d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 20 Mar 2013 00:15:33 +0800 Subject: 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(+) (limited to 'Bugzilla/Attachment.pm') diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 3678424c9..df1a11fcc 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; } -- cgit v1.2.3-24-g4f1b