summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 7b76f6af0..b4e2aca6c 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -194,13 +194,13 @@ sub multipart_start {
my %args = @_;
- # CGI.pm::multipart_start doesn't accept a -charset parameter, so
+ # CGI.pm::multipart_start doesn't honour its own charset information, so
# we do it ourselves here
- if (defined $args{-charset} && defined $args{-type}) {
+ if (defined $self->charset() && defined $args{-type}) {
# Remove any existing charset specifier
$args{-type} =~ s/;.*$//;
# and add the specified one
- $args{-type} .= "; charset=$args{-charset}";
+ $args{-type} .= '; charset=' . $self->charset();
}
my $headers = $self->SUPER::multipart_start(%args);