From: Joshua ben Jore Date: Sun, 19 Feb 2006 02:58:10 +0000 (-0600) Subject: Patches: B, CGI, ExtUtils::MM_Unix X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cd755de4750e2191b6465129deed94f5a245ab7e;p=p5sagit%2Fp5-mst-13.2.git Patches: B, CGI, ExtUtils::MM_Unix From: "Joshua ben Jore" Message-ID: p4raw-id: //depot/perl@27255 --- diff --git a/AUTHORS b/AUTHORS index 41aef17..d7dcc2d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -438,6 +438,7 @@ Jos I. Boumans Jose Auguste-Etienne Joseph N. Hall Joseph S. Myers +Joshua ben Jore Joshua E. Rodd Joshua Pritikin Joost van Baal diff --git a/lib/CGI.pm b/lib/CGI.pm index e93efc0..025c83f 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -1435,7 +1435,11 @@ sub header { ($_ = $header) =~ s/^(\w)(.*)/"\u$1\L$2" . ': '.$self->unescapeHTML($value)/e; } - $type .= "; charset=$charset" if $type ne '' and $type !~ /\bcharset\b/ and $charset ne ''; + $type .= "; charset=$charset" + if $type ne '' + and $type !~ /\bcharset\b/ + and defined $charset + and $charset ne ''; # Maybe future compatibility. Maybe not. my $protocol = $ENV{SERVER_PROTOCOL} || 'HTTP/1.0';