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
ff0e97c4
Commit
ff0e97c4
authored
Aug 02, 2007
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 387860 â Subject lines in mails may contain mangled multi-byte characters.
Patch by Ilya Slobodin <islobodin@yandex.ru>, r=Wurblzap, a=mkanat
parent
af47f924
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
Mailer.pm
Bugzilla/Mailer.pm
+1
-0
No files found.
Bugzilla/Mailer.pm
View file @
ff0e97c4
...
@@ -66,6 +66,7 @@ sub MessageToMTA {
...
@@ -66,6 +66,7 @@ sub MessageToMTA {
# 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
qw(From To Cc Reply-To Sender Errors-To Subject)
{
if
(
my
$value
=
$email
->
header
(
$header
))
{
if
(
my
$value
=
$email
->
header
(
$header
))
{
$value
=
Encode::
decode
(
"UTF-8"
,
$value
)
if
Bugzilla
->
params
->
{
'utf8'
};
my
$encoded
=
encode
(
'MIME-Q'
,
$value
);
my
$encoded
=
encode
(
'MIME-Q'
,
$value
);
$email
->
header_set
(
$header
,
$encoded
);
$email
->
header_set
(
$header
,
$encoded
);
}
}
...
...
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