mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 1167982 - Do charset detection for all text/* attachments in composition, not just text/plain.
Tag #1273
This commit is contained in:
parent
d27ecf750c
commit
d60003b8d1
1 changed files with 3 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue