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
cde1c585
Commit
cde1c585
authored
Jan 08, 2015
by
Albert Ting
Committed by
Dylan William Hardison
Jan 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 825975 - Move the buglist.cgi "get_format" call after processing runnamed
r=dylan, a=glob
parent
95d08260
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
33 deletions
+34
-33
buglist.cgi
buglist.cgi
+34
-33
No files found.
buglist.cgi
View file @
cde1c585
...
@@ -88,29 +88,6 @@ if (defined $cgi->param('ctype') && $cgi->param('ctype') eq "rss") {
...
@@ -88,29 +88,6 @@ if (defined $cgi->param('ctype') && $cgi->param('ctype') eq "rss") {
$cgi
->
param
(
'ctype'
,
"atom"
);
$cgi
->
param
(
'ctype'
,
"atom"
);
}
}
# Determine the format in which the user would like to receive the output.
# Uses the default format if the user did not specify an output format;
# otherwise validates the user's choice against the list of available formats.
my
$format
=
$template
->
get_format
(
"list/list"
,
scalar
$cgi
->
param
(
'format'
),
scalar
$cgi
->
param
(
'ctype'
));
# Use server push to display a "Please wait..." message for the user while
# executing their query if their browser supports it and they are viewing
# the bug list as HTML and they have not disabled it by adding &serverpush=0
# to the URL.
#
# Server push is compatible with Gecko-based browsers and Opera, but not with
# MSIE, Lynx or Safari (bug 441496).
my
$serverpush
=
$format
->
{
'extension'
}
eq
"html"
&&
exists
$ENV
{
'HTTP_USER_AGENT'
}
&&
$ENV
{
'HTTP_USER_AGENT'
}
=~
/(Mozilla.[3-9]|Opera)/
&&
$ENV
{
'HTTP_USER_AGENT'
}
!~
/compatible/i
&&
$ENV
{
'HTTP_USER_AGENT'
}
!~
/(?:WebKit|Trident|KHTML)/
&&
!
defined
(
$cgi
->
param
(
'serverpush'
))
||
$cgi
->
param
(
'serverpush'
);
my
$order
=
$cgi
->
param
(
'order'
)
||
""
;
my
$order
=
$cgi
->
param
(
'order'
)
||
""
;
# The params object to use for the actual query itself
# The params object to use for the actual query itself
...
@@ -334,16 +311,6 @@ if ($cmdtype eq "runnamed") {
...
@@ -334,16 +311,6 @@ if ($cmdtype eq "runnamed") {
# This will be modified, so make a copy.
# This will be modified, so make a copy.
$params
||=
new
Bugzilla::
CGI
(
$cgi
);
$params
||=
new
Bugzilla::
CGI
(
$cgi
);
# Generate a reasonable filename for the user agent to suggest to the user
# when the user saves the bug list. Uses the name of the remembered query
# if available. We have to do this now, even though we return HTTP headers
# at the end, because the fact that there is a remembered query gets
# forgotten in the process of retrieving it.
my
$disp_prefix
=
"bugs"
;
if
(
$cmdtype
eq
"dorem"
&&
$remaction
=~
/^run/
)
{
$disp_prefix
=
$cgi
->
param
(
'namedcmd'
);
}
# Take appropriate action based on user's request.
# Take appropriate action based on user's request.
if
(
$cmdtype
eq
"dorem"
)
{
if
(
$cmdtype
eq
"dorem"
)
{
if
(
$remaction
eq
"run"
)
{
if
(
$remaction
eq
"run"
)
{
...
@@ -477,6 +444,40 @@ if (!$params->param('query_format')) {
...
@@ -477,6 +444,40 @@ if (!$params->param('query_format')) {
$buffer
=
$params
->
query_string
;
$buffer
=
$params
->
query_string
;
}
}
# Determine the format in which the user would like to receive the output.
# Uses the default format if the user did not specify an output format;
# otherwise validates the user's choice against the list of available formats.
my
$format
=
$template
->
get_format
(
"list/list"
,
scalar
$cgi
->
param
(
'format'
),
scalar
$cgi
->
param
(
'ctype'
));
# Use server push to display a "Please wait..." message for the user while
# executing their query if their browser supports it and they are viewing
# the bug list as HTML and they have not disabled it by adding &serverpush=0
# to the URL.
#
# Server push is compatible with Gecko-based browsers and Opera, but not with
# MSIE, Lynx or Safari (bug 441496).
my
$serverpush
=
$format
->
{
'extension'
}
eq
"html"
&&
exists
$ENV
{
'HTTP_USER_AGENT'
}
&&
$ENV
{
'HTTP_USER_AGENT'
}
=~
/(Mozilla.[3-9]|Opera)/
&&
$ENV
{
'HTTP_USER_AGENT'
}
!~
/compatible/i
&&
$ENV
{
'HTTP_USER_AGENT'
}
!~
/(?:WebKit|Trident|KHTML)/
&&
!
defined
(
$cgi
->
param
(
'serverpush'
))
||
$cgi
->
param
(
'serverpush'
);
# Generate a reasonable filename for the user agent to suggest to the user
# when the user saves the bug list. Uses the name of the remembered query
# if available. We have to do this now, even though we return HTTP headers
# at the end, because the fact that there is a remembered query gets
# forgotten in the process of retrieving it.
my
$disp_prefix
=
"bugs"
;
if
(
$cmdtype
eq
"dorem"
&&
$remaction
=~
/^run/
)
{
$disp_prefix
=
$cgi
->
param
(
'namedcmd'
);
}
################################################################################
################################################################################
# Column Definition
# Column Definition
################################################################################
################################################################################
...
...
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