summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-10-08 05:48:56 +0200
committerbugreport%peshkin.net <>2005-10-08 05:48:56 +0200
commit1ba2db8af58cfbe8c521e83e9ca1f3468500f07f (patch)
treeb63315dbafa3d59c3da14075406d6e8e6fe5bcb6
parent190170a6935fc7faf497d65b85cde7691496ffe6 (diff)
downloadbugzilla-1ba2db8af58cfbe8c521e83e9ca1f3468500f07f.tar.gz
bugzilla-1ba2db8af58cfbe8c521e83e9ca1f3468500f07f.tar.xz
Bug 311437 Buglist does not send utf8 charset after server push
Patch by Joel Peshkin <bugreport@peshkin.net> r=kiko, a=justdave
-rwxr-xr-xbuglist.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index f8f81d3e5..b832d82c7 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -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