From 2ccf81dec1fbe4e215ea47700a4e006420318621 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sun, 15 Mar 2015 13:50:28 +0100 Subject: Bug 902395: Enforce utf8 = true for all installations and remove the utf8 parameter r=dkl a=sgreen --- email_in.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'email_in.pl') 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 { -- cgit v1.2.3-24-g4f1b