From 9ee10b6968f087ff900f53f1fdd9af0e86dfecd4 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 6 Sep 2024 16:11:44 +0200 Subject: [PATCH] Escape html from redaction message --- src/models/messageeventmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/messageeventmodel.cpp b/src/models/messageeventmodel.cpp index 6d8ace137..9efc0540a 100644 --- a/src/models/messageeventmodel.cpp +++ b/src/models/messageeventmodel.cpp @@ -436,7 +436,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const if (evt.isRedacted()) { auto reason = evt.redactedBecause()->reason(); return (reason.isEmpty()) ? i18n("[This message was deleted]") - : i18n("[This message was deleted: %1]", evt.redactedBecause()->reason()); + : i18n("[This message was deleted: %1]", evt.redactedBecause()->reason().toHtmlEscaped()); } return EventHandler::richBody(m_currentRoom, &evt); }