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
9efdf77d
Commit
9efdf77d
authored
Apr 06, 2004
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 230293 - Send CSV buglists with "Content-Disposition: attachment". Patch by gerv; r,a=justdave.
parent
2eae8e3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
buglist.cgi
buglist.cgi
+8
-1
No files found.
buglist.cgi
View file @
9efdf77d
...
...
@@ -866,6 +866,7 @@ if ($dotweak) {
# Generate HTTP headers
my
$contenttype
;
my
$disp
=
"inline"
;
if
(
$format
->
{
'extension'
}
eq
"html"
)
{
my
$cookiepath
=
Param
(
"cookiepath"
);
...
...
@@ -894,6 +895,12 @@ else {
$contenttype
=
$format
->
{
'ctype'
};
}
if
(
$format
->
{
'extension'
}
eq
"csv"
)
{
# We set CSV files to be downloaded, as they are designed for importing
# into other programs.
$disp
=
"attachment"
;
}
if
(
$serverpush
)
{
print
$cgi
->
multipart_start
(
-
type
=>
$contenttype
);
}
else
{
...
...
@@ -901,7 +908,7 @@ if ($serverpush) {
# 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
=>
"
inline
; filename=$filename"
);
-
content_disposition
=>
"
$disp
; filename=$filename"
);
}
...
...
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