Commit 2ed33b9f authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 386368 - Links in HTML emails broken by escaped ampersands

FIXED-IN: 5.6.3
BUG: 386368
parent abd84bda
......@@ -1184,6 +1184,13 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
} else {
makeValidHtml(htmlBody);
}
if (mMode == NewMessage && plainBody.isEmpty() && !mExtractHtmlInfoResult.mPlainText.isEmpty()) {
plainBody = mExtractHtmlInfoResult.mPlainText;
}
if (mMode == NewMessage && htmlBody.isEmpty() && !mExtractHtmlInfoResult.mHtmlElement.isEmpty()) {
htmlBody = mExtractHtmlInfoResult.mHtmlElement;
}
addProcessedBodyToMessage(plainBody, htmlBody);
Q_EMIT parsingDone(mForceCursorPosition);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment