Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
2a918621
Unverified
Commit
2a918621
authored
Aug 29, 2024
by
Dave Miller
Committed by
GitHub
Aug 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1880288: Noncharacters in comments cause bugmail sending to fail
parent
34673924
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
MIME.pm
Bugzilla/MIME.pm
+3
-3
Mailer.pm
Bugzilla/Mailer.pm
+3
-0
No files found.
Bugzilla/MIME.pm
View file @
2a918621
...
...
@@ -13,7 +13,7 @@ use 5.14.0;
use
parent
qw(Email::MIME)
;
sub
new
{
my
(
$class
,
$msg
)
=
@_
;
my
(
$class
,
$msg
,
$args
)
=
@_
;
# Template-Toolkit trims trailing newlines, which is problematic when
# parsing headers.
...
...
@@ -52,7 +52,7 @@ sub new {
# you're running on. See http://perldoc.perl.org/perlport.html#Newlines
$msg
=~
s/(?:\015+)?\012/\015\012/msg
;
return
$class
->
SUPER::
new
(
$msg
);
return
$class
->
SUPER::
new
(
$msg
,
$args
);
}
sub
as_string
{
...
...
@@ -113,7 +113,7 @@ workarounds.
=head1 SYNOPSIS
use Bugzilla::MIME;
my $email = Bugzilla::MIME->new($message);
my $email = Bugzilla::MIME->new($message
, $args
);
=head1 DESCRIPTION
...
...
Bugzilla/Mailer.pm
View file @
2a918621
...
...
@@ -21,6 +21,7 @@ use Bugzilla::MIME;
use
Bugzilla::
User
;
use
Bugzilla::
Util
;
use
Encode
qw()
use
Date::
Format
qw(time2str)
;
use
Email::Sender::
Simple
qw(sendmail)
;
...
...
@@ -61,6 +62,7 @@ sub generate_email {
encoding
=>
'quoted-printable'
,
},
body_str
=>
$msg_text
,
encode_check
=>
Encode::
FB_DEFAULT
));
if
(
$templates
->
{
html
}
&&
$email_format
eq
'html'
)
{
$template
->
process
(
$templates
->
{
html
},
$vars
,
\
$msg_html
)
...
...
@@ -73,6 +75,7 @@ sub generate_email {
encoding
=>
'quoted-printable'
,
},
body_str
=>
$msg_html
,
encode_check
=>
Encode::
FB_DEFAULT
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment