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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
20df5235
Commit
20df5235
authored
Nov 01, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 357526: buglist.cgi doesn't specify encoding as UTF-8 when the rest of Bugzilla does
Patch By John Beranek <john@redux.org.uk> r=mkanat, a=justdave
parent
89edfad4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
CGI.pm
Bugzilla/CGI.pm
+13
-1
No files found.
Bugzilla/CGI.pm
View file @
20df5235
...
...
@@ -166,7 +166,19 @@ sub multipart_init {
# Have to add the cookies in.
sub
multipart_start
{
my
$self
=
shift
;
my
$headers
=
$self
->
SUPER::
multipart_start
(
@_
);
my
%
args
=
@_
;
# CGI.pm::multipart_start doesn't accept a -charset parameter, so
# we do it ourselves here
if
(
defined
$args
{
-
charset
}
&&
defined
$args
{
-
type
})
{
# Remove any existing charset specifier
$args
{
-
type
}
=~
s/;.*$//
;
# and add the specified one
$args
{
-
type
}
.=
"; charset=$args{-charset}"
;
}
my
$headers
=
$self
->
SUPER::
multipart_start
(
%
args
);
# Eliminate the one extra CRLF at the end.
$headers
=~
s/$CGI::CRLF$//
;
# Add the cookies. We have to do it this way instead of
...
...
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