diff options
author | Byron Jones <bjones@mozilla.com> | 2013-03-19 17:15:33 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-03-19 17:15:33 +0100 |
commit | a9f2bb677b5f721ad0c47b52cdf35fca11c64d2d (patch) | |
tree | 7df462bad0bf7d59692e600632933408adcbfd06 /Bugzilla | |
parent | 3380135d974d1846983e7ae14f813baf6bd1a9e3 (diff) | |
download | bugzilla-a9f2bb677b5f721ad0c47b52cdf35fca11c64d2d.tar.gz bugzilla-a9f2bb677b5f721ad0c47b52cdf35fca11c64d2d.tar.xz |
Bug 852445: Mime type detection truncates the first 32 bytes from attachments
r=LpSolit,r=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Attachment.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |