]> 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:16:29 +0000 (00:16 +0800)
committerByron Jones <bjones@mozilla.com>
Tue, 19 Mar 2013 16:16:29 +0000 (00:16 +0800)
r=LpSolit,r=LpSolit

Bugzilla/Attachment.pm

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