зеркало из https://github.com/mozilla/pjs.git
[Bug 399278] New Mail Notification PopUp shows BASE64 (
Content-Transfer-Encoding treated as case sensitive) r+sr=bienvenu
This commit is contained in:
Родитель
55ce57030b
Коммит
afa6232b41
|
@ -4851,7 +4851,7 @@ NS_IMETHODIMP nsMsgDBFolder::GetMsgTextFromStream(nsIMsgDBHdr *msgHdr, nsIInputS
|
|||
nsCaseInsensitiveCStringComparator()))
|
||||
{
|
||||
curLine.Right(encoding, curLine.Length() - 27);
|
||||
if (encoding.EqualsLiteral("base64"))
|
||||
if (encoding.LowerCaseEqualsLiteral("base64"))
|
||||
isBase64 = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -4902,7 +4902,7 @@ NS_IMETHODIMP nsMsgDBFolder::GetMsgTextFromStream(nsIMsgDBHdr *msgHdr, nsIInputS
|
|||
*/
|
||||
void nsMsgDBFolder::decodeMsgSnippet(const nsACString& aEncodingType, PRBool aIsComplete, nsCString& aMsgSnippet)
|
||||
{
|
||||
if (aEncodingType.EqualsLiteral("base64"))
|
||||
if (aEncodingType.LowerCaseEqualsLiteral("base64"))
|
||||
{
|
||||
PRInt32 base64Len = aMsgSnippet.Length();
|
||||
if (aIsComplete)
|
||||
|
@ -4915,7 +4915,7 @@ void nsMsgDBFolder::decodeMsgSnippet(const nsACString& aEncodingType, PRBool aIs
|
|||
aMsgSnippet.ReplaceChar('\r', '\n');
|
||||
|
||||
}
|
||||
else if (aEncodingType.EqualsLiteral("quoted-printable"))
|
||||
else if (aEncodingType.LowerCaseEqualsLiteral("quoted-printable"))
|
||||
{
|
||||
// giant hack - decode in place, and truncate string.
|
||||
MsgStripQuotedPrintable((unsigned char *) aMsgSnippet.get());
|
||||
|
|
Загрузка…
Ссылка в новой задаче