From a6dd5b9a573afcc2ae127f55e52fc5fdbd079ac1 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 16 Oct 2021 20:45:14 +0200 Subject: [PATCH] Escape html before processing text to be sent --- src/actionshandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 082e5b2bf..ae13f2e76 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -106,7 +106,7 @@ void ActionsHandler::postMessage(const QString &text, CustomEmojiModel *cem) { QString rawText = text; - QString cleanedText = text; + QString cleanedText = text.toHtmlEscaped(); auto preprocess = [cem](const QString &it) -> QString { if (cem == nullptr) {