diff options
author | dave%intrec.com <> | 2000-07-20 01:05:51 +0200 |
---|---|---|
committer | dave%intrec.com <> | 2000-07-20 01:05:51 +0200 |
commit | 16488acd8d39621ac14022063310f1164e4e0ee7 (patch) | |
tree | a28069e1893d3edf17f09b2b4b7e20d0835c02c9 | |
parent | 9154c59e5079c1943cb51df83a34c390240572e9 (diff) | |
download | bugzilla-16488acd8d39621ac14022063310f1164e4e0ee7.tar.gz bugzilla-16488acd8d39621ac14022063310f1164e4e0ee7.tar.xz |
Fix for bug 27248 (Bug listings saved with .html extension). Patch
submitted by mhamby@logicon.com (Mark Hamby).
-rwxr-xr-x | buglist.cgi | 2 | ||||
-rwxr-xr-x | long_list.cgi | 3 | ||||
-rwxr-xr-x | reports.cgi | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi index c704df168..8a0225685 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -764,6 +764,7 @@ if (exists $ENV{'HTTP_USER_AGENT'} && $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ # Note! HTML header is complete! } else { print "Content-type: text/html\n"; + print "Content-disposition: attachment; filename=bugzilla_bug_list.html\n"; # Note! Don't finish HTML header yet! Only one newline so far! } @@ -1143,6 +1144,7 @@ if ($serverpush) { print "\n"; print "--thisrandomstring\n"; print "Content-type: text/html\n"; + print "Content-disposition: attachment; filename=bugzilla_bug_list.html\n"; # Note! HTML header not yet closed } my $toolong = 0; diff --git a/long_list.cgi b/long_list.cgi index e095c59ec..c2be914e2 100755 --- a/long_list.cgi +++ b/long_list.cgi @@ -36,7 +36,8 @@ sub sillyness { $zz = %::FORM; } -print "Content-type: text/html\n\n"; +print "Content-type: text/html\n"; +print "Content-disposition: attachement; filename=bugzilla_bug_list.html\n\n"; PutHeader ("Full Text Bug Listing"); ConnectToDatabase(); diff --git a/reports.cgi b/reports.cgi index 8737583ab..4235b343c 100755 --- a/reports.cgi +++ b/reports.cgi @@ -52,7 +52,8 @@ my %reports = "show_chart" => \&show_chart, ); -print "Content-type: text/html\n\n"; +print "Content-type: text/html\n"; +print "Content-disposition: attachment; filename=bugzilla_report.html\n\n"; # If we're here for the first time, give a banner. Else respect the banner flag. if ( (!defined $::FORM{'product'}) || ($::FORM{'banner'}) ) |