]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1297243 - JSON bugzilla attachment reports charset='' (two apostrophes, which...
authorDylan William Hardison <dylan@hardison.net>
Mon, 3 Oct 2016 15:50:07 +0000 (11:50 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 3 Oct 2016 15:50:07 +0000 (11:50 -0400)
attachment.cgi

index da808bd3f62c9616577ebf586dd90e7b9bac64cc..d5a69f198057f27bdd284b270e693b066e3ed4a0 100755 (executable)
@@ -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) {