diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:08:45 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:08:45 -0500 |
commit | 43db6faf2afe9075d97c59bfc80fb0fd27488606 (patch) | |
tree | 6388a5d22bd81d640f33c446d78ddcb0b3375507 /mailnews/compose/src/nsMsgCompFields.cpp | |
parent | 0707a51eaddec22ab760e27050e2fcefab2cdae5 (diff) | |
download | uxp-43db6faf2afe9075d97c59bfc80fb0fd27488606.tar.gz |
Bug 1528496 - Correctly fix Bug 1023285 and utf8 addressing header display for jsmime.
Tag #1273
Diffstat (limited to 'mailnews/compose/src/nsMsgCompFields.cpp')
-rw-r--r-- | mailnews/compose/src/nsMsgCompFields.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mailnews/compose/src/nsMsgCompFields.cpp b/mailnews/compose/src/nsMsgCompFields.cpp index c65e6ca174..24192f5940 100644 --- a/mailnews/compose/src/nsMsgCompFields.cpp +++ b/mailnews/compose/src/nsMsgCompFields.cpp @@ -600,7 +600,7 @@ nsMsgCompFields::SplitRecipients(const nsAString &aRecipients, *aLength = 0; *aResult = nullptr; - nsCOMArray<msgIAddressObject> header(EncodedHeader(NS_ConvertUTF16toUTF8(aRecipients))); + nsCOMArray<msgIAddressObject> header(EncodedHeaderW(aRecipients)); nsTArray<nsString> results; if (aEmailAddressOnly) ExtractEmails(header, results); @@ -623,8 +623,7 @@ nsresult nsMsgCompFields::SplitRecipientsEx(const nsAString &recipients, nsTArray<nsMsgRecipient> &aResult) { nsTArray<nsString> names, addresses; - ExtractAllAddresses(EncodedHeader(NS_ConvertUTF16toUTF8(recipients)), names, - addresses); + ExtractAllAddresses(EncodedHeaderW(recipients), names, addresses); uint32_t numAddresses = names.Length(); for (uint32_t i = 0; i < numAddresses; ++i) |