summaryrefslogtreecommitdiffstats
path: root/email_in.pl
diff options
context:
space:
mode:
Diffstat (limited to 'email_in.pl')
-rwxr-xr-xemail_in.pl5
1 files changed, 1 insertions, 4 deletions
diff --git a/email_in.pl b/email_in.pl
index ae4c42bde..70ef26b6c 100755
--- a/email_in.pl
+++ b/email_in.pl
@@ -398,10 +398,7 @@ sub get_text_alternative {
sub _decode_body {
my ($charset, $body) = @_;
- if (Bugzilla->params->{'utf8'} && !utf8::is_utf8($body)) {
- return Encode::decode($charset, $body);
- }
- return $body;
+ return utf8::is_utf8($body) ? $body : Encode::decode($charset, $body);
}
sub remove_leading_blank_lines {