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
2fdc142e
Commit
2fdc142e
authored
Jan 07, 2016
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 402039: Exporting CSV from chart.cgi doesn't set mimetype, content_disposition, or filename
r/a=dkl
parent
f6fd37da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
chart.cgi
chart.cgi
+5
-6
No files found.
chart.cgi
View file @
2fdc142e
...
...
@@ -305,16 +305,15 @@ sub plot {
$vars
->
{
'chart'
}
=
new
Bugzilla::
Chart
(
$cgi
);
my
$format
=
$template
->
get_format
(
"reports/chart"
,
""
,
scalar
(
$cgi
->
param
(
'ctype'
)));
$format
->
{
'ctype'
}
=
'text/html'
if
$cgi
->
param
(
'debug'
);
# Debugging PNGs is a pain; we need to be able to see the error messages
if
(
$cgi
->
param
(
'debug'
))
{
print
$cgi
->
header
();
$vars
->
{
'chart'
}
->
dump
();
}
$cgi
->
set_dated_content_disp
(
'inline'
,
'chart'
,
$format
->
{
extension
});
print
$cgi
->
header
(
$format
->
{
'ctype'
});
disable_utf8
()
if
(
$format
->
{
'ctype'
}
=~
/^image\//
);
# Debugging PNGs is a pain; we need to be able to see the error messages
$vars
->
{
'chart'
}
->
dump
()
if
$cgi
->
param
(
'debug'
);
$template
->
process
(
$format
->
{
'template'
},
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
}
...
...
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