]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 311437 Buglist does not send utf8 charset after server push
authorbugreport%peshkin.net <>
Sat, 8 Oct 2005 03:48:56 +0000 (03:48 +0000)
committerbugreport%peshkin.net <>
Sat, 8 Oct 2005 03:48:56 +0000 (03:48 +0000)
Patch by Joel Peshkin <bugreport@peshkin.net>
r=kiko, a=justdave

buglist.cgi

index f8f81d3e51585f22c34067977d5486020a833b89..b832d82c7dbda39d50e6db1cd19d1712bfc3a5e0 100755 (executable)
@@ -1066,7 +1066,11 @@ if ($format->{'extension'} eq "csv") {
 if ($serverpush) {
     # close the "please wait" page, then open the buglist page
     print $cgi->multipart_end();
-    print $cgi->multipart_start(-type => $contenttype, -content_disposition => $disposition);
+    my @extra;
+    push @extra, (-charset => "utf8") if Param("utf8");
+    print $cgi->multipart_start(-type => $contenttype, 
+                                -content_disposition => $disposition, 
+                                @extra);
 } else {
     # Suggest a name for the bug list if the user wants to save it as a file.
     # If we are doing server push, then we did this already in the HTTP headers