summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-08-02 14:20:57 +0200
committerwurblzap%gmail.com <>2007-08-02 14:20:57 +0200
commitff0e97c463d4cb2429f5b3a12191e4743c57eeb0 (patch)
treefb6aba8d1a9fa1377b7bf623a0eea02d564d8a99 /Bugzilla
parentaf47f9247beae60d3c52345204960d71a1bb2bcf (diff)
downloadbugzilla-ff0e97c463d4cb2429f5b3a12191e4743c57eeb0.tar.gz
bugzilla-ff0e97c463d4cb2429f5b3a12191e4743c57eeb0.tar.xz
Bug 387860 – Subject lines in mails may contain mangled multi-byte characters.
Patch by Ilya Slobodin <islobodin@yandex.ru>, r=Wurblzap, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Mailer.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index ab54ecfea..b4b2f320d 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -66,6 +66,7 @@ sub MessageToMTA {
# Encode the headers correctly in quoted-printable
foreach my $header qw(From To Cc Reply-To Sender Errors-To Subject) {
if (my $value = $email->header($header)) {
+ $value = Encode::decode("UTF-8", $value) if Bugzilla->params->{'utf8'};
my $encoded = encode('MIME-Q', $value);
$email->header_set($header, $encoded);
}