diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-17 19:29:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-17 19:29:29 +0900 |
commit | bc27d9cdcc5cb71aec12f2e3f15b5762a93b721f (patch) | |
tree | 49f1b4c1e1e607c51ae710a65242d42dc747b24f /lib/util.cpp | |
parent | 4a7e1a8c8a1940827ba9aea0bd830ef9dbf912ed (diff) | |
download | libquotient-bc27d9cdcc5cb71aec12f2e3f15b5762a93b721f.tar.gz libquotient-bc27d9cdcc5cb71aec12f2e3f15b5762a93b721f.zip |
prettyPrint: do not apply sanitized()
Only display names should be sanitized; messages are only HTML-escaped.
Diffstat (limited to 'lib/util.cpp')
-rw-r--r-- | lib/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp index 2744d45f..59e373c2 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -74,7 +74,7 @@ QString QMatrixClient::sanitized(const QString& plainText) QString QMatrixClient::prettyPrint(const QString& plainText) { auto pt = QStringLiteral("<span style='white-space:pre-wrap'>") + - sanitized(plainText).toHtmlEscaped() + QStringLiteral("</span>"); + plainText.toHtmlEscaped() + QStringLiteral("</span>"); pt.replace('\n', QStringLiteral("<br/>")); linkifyUrls(pt); |