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
79cd8e82
Commit
79cd8e82
authored
Oct 03, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 405453: Make Bugzilla encode all outgoing email headers.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=himorin, a=mkanat
parent
a43231dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Mailer.pm
Bugzilla/Mailer.pm
+5
-2
No files found.
Bugzilla/Mailer.pm
View file @
79cd8e82
...
@@ -96,8 +96,11 @@ sub MessageToMTA {
...
@@ -96,8 +96,11 @@ sub MessageToMTA {
$email
->
header_set
(
'MIME-Version'
,
'1.0'
)
if
!
$email
->
header
(
'MIME-Version'
);
$email
->
header_set
(
'MIME-Version'
,
'1.0'
)
if
!
$email
->
header
(
'MIME-Version'
);
# Encode the headers correctly in quoted-printable
# Encode the headers correctly in quoted-printable
foreach
my
$header
qw(From To Cc Reply-To Sender Errors-To Subject)
{
foreach
my
$header
(
$email
->
header_names
)
{
if
(
my
$value
=
$email
->
header
(
$header
))
{
my
@values
=
$email
->
header
(
$header
);
# We don't recode headers that happen multiple times.
next
if
scalar
(
@values
)
>
1
;
if
(
my
$value
=
$values
[
0
])
{
if
(
Bugzilla
->
params
->
{
'utf8'
}
&&
!
utf8::
is_utf8
(
$value
))
{
if
(
Bugzilla
->
params
->
{
'utf8'
}
&&
!
utf8::
is_utf8
(
$value
))
{
utf8::
decode
(
$value
);
utf8::
decode
(
$value
);
}
}
...
...
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