Bugs 1402750 and 1490331 - Declare the character set correctly in the 'PGP add-on is missing' message.

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-10 23:45:23 -05:00 committed by Roy Tam
commit 218ad487d8

View file

@ -356,14 +356,14 @@ nsPgpMimeProxy::Finish() {
}
else {
nsCString temp;
temp.Append("Content-Type: text/html\r\nCharset: UTF-8\r\n\r\n<html><body>");
temp.Append("<BR><text=\"#000000\" bgcolor=\"#FFFFFF\" link=\"#FF0000\" vlink=\"#800080\" alink=\"#0000FF\">");
temp.Append("<center><table BORDER=1 ><tr><td><CENTER>");
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.Append("</CENTER></td></tr></table></center><BR></body></html>\r\n");
temp.AppendLiteral("</CENTER></td></tr></table></center><BR></body></html>\r\n");
PR_SetError(0,0);
int status = mOutputFun(temp.get(), temp.Length(), mOutputClosure);