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
8699690c
Commit
8699690c
authored
Jun 22, 2007
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 383745: Incorrect charset specification in "please wait" screen when server push is in use.
Patch by Marc Schumann <wurblzap@gmail.com>, r=mkanat, a=mkanat
parent
1609f8fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
24 deletions
+19
-24
CGI.pm
Bugzilla/CGI.pm
+3
-3
buglist.cgi
buglist.cgi
+16
-21
No files found.
Bugzilla/CGI.pm
View file @
8699690c
...
...
@@ -194,13 +194,13 @@ sub multipart_start {
my
%
args
=
@_
;
# CGI.pm::multipart_start doesn't
accept a -charset parameter
, so
# CGI.pm::multipart_start doesn't
honour its own charset information
, so
# we do it ourselves here
if
(
defined
$
args
{
-
charset
}
&&
defined
$args
{
-
type
})
{
if
(
defined
$
self
->
charset
()
&&
defined
$args
{
-
type
})
{
# Remove any existing charset specifier
$args
{
-
type
}
=~
s/;.*$//
;
# and add the specified one
$args
{
-
type
}
.=
"; charset=$args{-charset}"
;
$args
{
-
type
}
.=
'; charset='
.
$self
->
charset
()
;
}
my
$headers
=
$self
->
SUPER::
multipart_start
(
%
args
);
...
...
buglist.cgi
View file @
8699690c
...
...
@@ -397,6 +397,8 @@ if ($cgi->param('cmdtype') eq "dorem" && $cgi->param('remaction') =~ /^run/) {
# with the HTTP headers.
$filename
=~
s/\s/_/g
;
}
$filename
=~
s/\\/\\\\/g
;
# escape backslashes
$filename
=~
s/"/\\"/g
;
# escape quotes
# Take appropriate action based on user's request.
if
(
$cgi
->
param
(
'cmdtype'
)
eq
"dorem"
)
{
...
...
@@ -957,14 +959,9 @@ if ($cgi->param('debug')) {
# Time to use server push to display an interim message to the user until
# the query completes and we can display the bug list.
my
$disposition
=
''
;
if
(
$serverpush
)
{
$filename
=~
s/\\/\\\\/g
;
# escape backslashes
$filename
=~
s/"/\\"/g
;
# escape quotes
$disposition
=
qq#inline; filename="$filename"#
;
print
$cgi
->
multipart_init
(
-
content_disposition
=>
$disposition
);
print
$cgi
->
multipart_start
();
print
$cgi
->
multipart_init
();
print
$cgi
->
multipart_start
(
-
type
=>
'text/html'
);
# Generate and return the UI (HTML page) from the appropriate template.
$template
->
process
(
"list/server-push.html.tmpl"
,
$vars
)
...
...
@@ -1189,7 +1186,7 @@ $vars->{'defaultsavename'} = $cgi->param('query_based_on');
# Generate HTTP headers
my
$contenttype
;
my
$disp
=
"inline"
;
my
$disp
osition
=
"inline"
;
if
(
$format
->
{
'extension'
}
eq
"html"
&&
!
$agent
)
{
if
(
$order
)
{
...
...
@@ -1221,23 +1218,21 @@ else {
if
(
$format
->
{
'extension'
}
eq
"csv"
)
{
# We set CSV files to be downloaded, as they are designed for importing
# into other programs.
$disp
=
"attachment"
;
$disp
osition
=
"attachment"
;
}
# Suggest a name for the bug list if the user wants to save it as a file.
$disposition
.=
"; filename=\"$filename\""
;
if
(
$serverpush
)
{
#
c
lose the "please wait" page, then open the buglist page
#
C
lose the "please wait" page, then open the buglist page
print
$cgi
->
multipart_end
();
my
@extra
;
push
@extra
,
(
-
charset
=>
"utf8"
)
if
Bugzilla
->
params
->
{
"utf8"
};
print
$cgi
->
multipart_start
(
-
type
=>
$contenttype
,
-
content_disposition
=>
$disposition
,
@extra
);
}
else
{
# Suggest a name for the bug list if the user wants to save it as a file.
# If we are doing server push, then we did this already in the HTTP headers
# that started the server push, so we don't have to do it again here.
print
$cgi
->
header
(
-
type
=>
$contenttype
,
-
content_disposition
=>
"$disp; filename=$filename"
);
print
$cgi
->
multipart_start
(
-
type
=>
$contenttype
,
-
content_disposition
=>
$disposition
);
}
else
{
print
$cgi
->
header
(
-
type
=>
$contenttype
,
-
content_disposition
=>
$disposition
);
}
...
...
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