summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-03 09:25:26 +0100
committerByron Jones <glob@mozilla.com>2014-11-03 09:25:26 +0100
commitd6ee5ade172abe24389aca15eba9fe922b5697c7 (patch)
tree7732cda46da5086f479aaf5311f1799503b82b0d
parent2090798550ab0b713a4c6a366634835c767af219 (diff)
downloadbugzilla-d6ee5ade172abe24389aca15eba9fe922b5697c7.tar.gz
bugzilla-d6ee5ade172abe24389aca15eba9fe922b5697c7.tar.xz
Bug 1092949: bugmail failing with "utf8 "\x82" does not map to Unicode at /usr/lib64/perl5/Encode.pm line 174"
-rw-r--r--extensions/Splinter/lib/Util.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/Splinter/lib/Util.pm b/extensions/Splinter/lib/Util.pm
index e6cbe7493..870e67be7 100644
--- a/extensions/Splinter/lib/Util.pm
+++ b/extensions/Splinter/lib/Util.pm
@@ -132,6 +132,7 @@ sub munge_create_attachment {
sub add_review_links_to_email {
my $email = shift;
return if $email->parts > 1;
+ return unless $email->content_type =~ m#^text/#;
_fix_encoding($email);
my $body = $email->body_str;