]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 265731: multipart_start in the server-push handling code wasn't honoring the...
authorjustdave%bugzilla.org <>
Sat, 23 Oct 2004 16:05:49 +0000 (16:05 +0000)
committerjustdave%bugzilla.org <>
Sat, 23 Oct 2004 16:05:49 +0000 (16:05 +0000)
r=myk, a=justdave

Bugzilla/CGI.pm

index 537c67da58633fa4bca5b76538275a24e2fceaee..b526e6650372c7abcc92374351d56692e95d7cfb 100644 (file)
@@ -153,7 +153,10 @@ sub multipart_start {
     my(@header);
     my($self,@p) = @_;
     my($type,@other) = rearrange([['TYPE','CONTENT_TYPE','CONTENT-TYPE']],@p);
+    my $charset = $self->charset;
     $type = $type || 'text/html';
+    $type .= "; charset=$charset" if $type ne '' and $type =~ m!^text/! and $type !~ /\bcharset\b/ and $charset ne '';
+
     push(@header,"Content-Type: $type");
 
     # Add the cookies in if we have any