diff options
author | Byron Jones <bjones@mozilla.com> | 2012-03-30 09:31:11 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-03-30 09:31:11 +0200 |
commit | ab94d342547caaf0335a54d843a5251ba23fedae (patch) | |
tree | 23e0114cf9de15e29ebd86c49d16d35d259adf43 | |
parent | da0d50fe3d7c9beccfc0d2a99a4273dcc175366c (diff) | |
download | bugzilla-ab94d342547caaf0335a54d843a5251ba23fedae.tar.gz bugzilla-ab94d342547caaf0335a54d843a5251ba23fedae.tar.xz |
Bug 738732: fix mangling of summary by securemail
-rw-r--r-- | extensions/SecureMail/Extension.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm index c863c72ba..11a67d5fd 100644 --- a/extensions/SecureMail/Extension.pm +++ b/extensions/SecureMail/Extension.pm @@ -26,7 +26,7 @@ use base qw(Bugzilla::Extension); use Bugzilla::Group; use Bugzilla::Object; use Bugzilla::User; -use Bugzilla::Util qw(correct_urlbase trim trick_taint); +use Bugzilla::Util qw(correct_urlbase trim trick_taint is_7bit_clean); use Bugzilla::Error; use Bugzilla::Mailer; @@ -275,6 +275,9 @@ sub _make_secure { if ($key_type && $sanitise_subject) { # Subject gets placed in the body so it can still be read my $body = $email->body_str; + if (!is_7bit_clean($subject)) { + $email->encoding_set('quoted-printable'); + } $body = "Subject: $subject\015\012\015\012" . $body; $email->body_str_set($body); } |