diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 00:54:45 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 00:54:45 -0500 |
commit | 3890d6e709f64c974e398e58a0ba012c890e7cc5 (patch) | |
tree | 86887ecd9e09a790dc74188f98a24b7d36863246 /mailnews | |
parent | f4190453b1ae76f48ae685be12c982cd281f0e07 (diff) | |
download | uxp-3890d6e709f64c974e398e58a0ba012c890e7cc5.tar.gz |
Bug 1167982 - Do charset detection for all text/* attachments in composition, not just text/plain.
Tag mcp-graveyard/UXP#1273
Diffstat (limited to 'mailnews')
-rw-r--r-- | mailnews/compose/src/nsMsgAttachmentHandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mailnews/compose/src/nsMsgAttachmentHandler.cpp b/mailnews/compose/src/nsMsgAttachmentHandler.cpp index 0ae253ed6e..9555de37fc 100644 --- a/mailnews/compose/src/nsMsgAttachmentHandler.cpp +++ b/mailnews/compose/src/nsMsgAttachmentHandler.cpp @@ -522,7 +522,9 @@ DONE: nsresult nsMsgAttachmentHandler::PickCharset() { - if (!m_charset.IsEmpty() || !m_type.LowerCaseEqualsLiteral(TEXT_PLAIN)) + if (!m_charset.IsEmpty() || + !StringBeginsWith(m_type, NS_LITERAL_CSTRING("text/"), + nsCaseInsensitiveCStringComparator())) return NS_OK; nsCOMPtr<nsIFile> tmpFile = |