Sanitize only message title, not contents, there any HTML-related decoding etc. is done directly by previewers. Doing double %-decoding results in some broken texts.

This commit is contained in:
Martin Rotter 2020-11-12 07:25:22 +01:00
parent 89ebcf7382
commit fa1cc80228

View File

@ -70,10 +70,6 @@ Message::Message() {
}
void Message::sanitize() {
// Also, make sure that HTML encoding, encoding of special characters, etc., is fixed.
m_contents = QUrl::fromPercentEncoding(m_contents.toUtf8());
m_author = m_author.toUtf8();
// Sanitize title.
m_title = m_title