aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorDave Miller <justdave@bugzilla.org>2024-08-29 07:04:15 -0400
committerDave Miller <github@justdave.net>2024-09-03 11:41:55 -0400
commit66db7a430586474f8a68007ac07546f49e9ab4df (patch)
tree86eed5ed0755d504ff1935d686271a6206010e30 /Bugzilla/BugMail.pm
parent430a93b7c4df3aadfa2262ef9b8bcc8e77f0eca8 (diff)
downloadbugs-66db7a430586474f8a68007ac07546f49e9ab4df.tar
bugs-66db7a430586474f8a68007ac07546f49e9ab4df.tar.gz
bugs-66db7a430586474f8a68007ac07546f49e9ab4df.tar.bz2
bugs-66db7a430586474f8a68007ac07546f49e9ab4df.tar.xz
bugs-66db7a430586474f8a68007ac07546f49e9ab4df.zip
Bug 1880288: Noncharacters in comments cause bugmail sending to fail
Co-authored-by: Frédéric Buclin <LpSolit@gmail.com>
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index fdcbc9d5a..1aff405d8 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -21,6 +21,7 @@ use Bugzilla::Mailer;
use Bugzilla::Hook;
use Bugzilla::MIME;
+use Encode qw();
use Date::Parse;
use Date::Format;
use Scalar::Util qw(blessed);
@@ -451,6 +452,7 @@ sub _generate_bugmail {
encoding => 'quoted-printable',
},
body_str => $msg_text,
+ encode_check => Encode::FB_DEFAULT
)
);
if ($user->setting('email_format') eq 'html') {
@@ -463,6 +465,7 @@ sub _generate_bugmail {
encoding => 'quoted-printable',
},
body_str => $msg_html,
+ encode_check => Encode::FB_DEFAULT
);
}