From: Dylan William Hardison Date: Mon, 3 Oct 2016 15:50:07 +0000 (-0400) Subject: Bug 1297243 - JSON bugzilla attachment reports charset='' (two apostrophes, which... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1dc4f608ffdf3bb2fb14f3846d6a1363c9eab92;p=thirdparty%2Fbugzilla.git Bug 1297243 - JSON bugzilla attachment reports charset='' (two apostrophes, which is an invalid parameter value) and can't be loaded. --- diff --git a/attachment.cgi b/attachment.cgi index da808bd3f..d5a69f198 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -391,7 +391,7 @@ sub view { if ($contenttype !~ /\bcharset=/i) { # In order to prevent Apache from adding a charset, we have to send a # charset that's a single space. - $cgi->charset("''"); + $cgi->charset(""); if (Bugzilla->feature('detect_charset') && $contenttype =~ /^text\//) { my $encoding = detect_encoding($attachment->data); if ($encoding) {