From e1dc4f608ffdf3bb2fb14f3846d6a1363c9eab92 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 3 Oct 2016 11:50:07 -0400 Subject: Bug 1297243 - JSON bugzilla attachment reports charset='' (two apostrophes, which is an invalid parameter value) and can't be loaded. --- attachment.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-24-g4f1b