Bug 875615: re-enable RFC2047 decoding (disable bug 601933) until we have telemetry r=jduell

This commit is contained in:
Julian Reschke 2013-06-14 15:52:36 -07:00
parent 0841d2b7e7
commit 8ce19b3638
2 changed files with 6 additions and 3 deletions

View File

@ -94,7 +94,10 @@ nsMIMEHeaderParamImpl::DoGetParameter(const nsACString& aHeaderVal,
nsAutoCString str1;
rv = internalDecodeParameter(med, charset.get(), nullptr, false,
aDecoding == MIME_FIELD_ENCODING, str1);
// was aDecoding == MIME_FIELD_ENCODING
// see bug 875615
true,
str1);
NS_ENSURE_SUCCESS(rv, rv);
if (!aFallbackCharset.IsEmpty())

View File

@ -266,11 +266,11 @@ var tests = [
// Bug 601933: RFC 2047 does not apply to parameters (at least in HTTP)
["attachment; filename==?ISO-8859-1?Q?foo-=E4.html?=",
"attachment", "foo-\u00e4.html",
"attachment", "=?ISO-8859-1?Q?foo-=E4.html?="],
/* "attachment", "=?ISO-8859-1?Q?foo-=E4.html?=" */],
["attachment; filename=\"=?ISO-8859-1?Q?foo-=E4.html?=\"",
"attachment", "foo-\u00e4.html",
"attachment", "=?ISO-8859-1?Q?foo-=E4.html?="],
/* "attachment", "=?ISO-8859-1?Q?foo-=E4.html?=" */],
// format sent by GMail as of 2012-07-23 (5987 overrides 2047)
["attachment; filename=\"=?ISO-8859-1?Q?foo-=E4.html?=\"; filename*=UTF-8''5987",