summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-19 17:15:33 +0100
committerByron Jones <bjones@mozilla.com>2013-03-19 17:15:33 +0100
commita9f2bb677b5f721ad0c47b52cdf35fca11c64d2d (patch)
tree7df462bad0bf7d59692e600632933408adcbfd06 /Bugzilla/Attachment.pm
parent3380135d974d1846983e7ae14f813baf6bd1a9e3 (diff)
downloadbugzilla-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/Attachment.pm')
-rw-r--r--Bugzilla/Attachment.pm1
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;
}