diff options
author | Dylan William Hardison <dylan@hardison.net> | 2016-10-03 17:50:07 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-10-03 17:50:07 +0200 |
commit | e1dc4f608ffdf3bb2fb14f3846d6a1363c9eab92 (patch) | |
tree | 9afbb3a28622cbd60bcddffcc9afaa27f01b0dbc | |
parent | 381c4dd4d8a013008264730137f442daecba1f5d (diff) | |
download | bugzilla-e1dc4f608ffdf3bb2fb14f3846d6a1363c9eab92.tar.gz bugzilla-e1dc4f608ffdf3bb2fb14f3846d6a1363c9eab92.tar.xz |
Bug 1297243 - JSON bugzilla attachment reports charset='' (two apostrophes, which is an invalid parameter value) and can't be loaded.
-rwxr-xr-x | attachment.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |