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:
parent
89ebcf7382
commit
fa1cc80228
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user