]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 27248 (Bug listings saved with .html extension). Patch
authordave%intrec.com <>
Wed, 19 Jul 2000 23:05:51 +0000 (23:05 +0000)
committerdave%intrec.com <>
Wed, 19 Jul 2000 23:05:51 +0000 (23:05 +0000)
submitted by mhamby@logicon.com (Mark Hamby).

buglist.cgi
long_list.cgi
reports.cgi

index c704df168f79ef52567cd17e14ef8f1c932a48e4..8a022568513e3d10997487e6df3e363ac1e0092f 100755 (executable)
@@ -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;
index e095c59ec8790f8f659b20eea27c0333cdc1c7d7..c2be914e26e7f98fdfca1c78ee088c4825609e15 100755 (executable)
@@ -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();
index 8737583abeb8e480193204c672b30d10986cbb6e..4235b343ce09816163e4a0a9f6dc7e8d0e7b6433 100755 (executable)
@@ -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'})  )