Bug 1490331 - Declare the character set correctly in the "PGP add-on is missing" message. r+a=jorgk
authorAlfred Peters <infofrommozilla@gmail.com>
Sat, 09 Feb 2019 23:07:43 +0100
changeset 34348 3a5638b42d2d6d93629c8b84fa028e80e2c1deab
parent 34347 415d630ef78a7911889452dd8350d92fb6e457c3
child 34349 bf09891616a48952acec87cef9d37861bc5fbacc
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
bugs1490331
Bug 1490331 - Declare the character set correctly in the "PGP add-on is missing" message. r+a=jorgk
mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp
--- a/mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp
+++ b/mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp
@@ -376,17 +376,17 @@ nsPgpMimeProxy::Finish() {
     return mDecryptor->OnStopRequest((nsIRequest*) this, nullptr, NS_OK);
   }
   else {
 
     if (!mOutputFun)
       return NS_ERROR_FAILURE;
 
     nsCString temp;
-    temp.AppendLiteral("Content-Type: text/html\r\nCharset: UTF-8\r\n\r\n<html><body>");
+    temp.AppendLiteral("Content-Type: text/html; Charset=utf-8\r\n\r\n<html><body>");
     temp.AppendLiteral("<BR><text=\"#000000\" bgcolor=\"#FFFFFF\" link=\"#FF0000\" vlink=\"#800080\" alink=\"#0000FF\">");
     temp.AppendLiteral("<center><table BORDER=1 ><tr><td><CENTER>");
 
     nsCString tString;
     PgpMimeGetNeedsAddonString(tString);
     temp.Append(tString);
     temp.AppendLiteral("</CENTER></td></tr></table></center><BR></body></html>\r\n");