]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 852445: Mime type detection truncates the first 32 bytes from attachments
authorByron Jones <bjones@mozilla.com>
Tue, 19 Mar 2013 16:15:33 +0000 (00:15 +0800)
committerByron Jones <bjones@mozilla.com>
Tue, 19 Mar 2013 16:15:33 +0000 (00:15 +0800)
r=LpSolit,r=LpSolit

Bugzilla/Attachment.pm

index 3678424c951c13b7a401d43a3f15c62f1a29fca0..df1a11fccc02d46580bdb3d08104b8eab69c9b3f 100644 (file)
@@ -546,6 +546,7 @@ sub _check_content_type {
         }
 
         my $mimetype = mimetype($fh);
+        $fh->seek(0, 0);
         $content_type = $mimetype if $mimetype;
     }