Escape html from redaction message
This commit is contained in:
committed by
Tobias Fella
parent
4d0db0b5c2
commit
9ee10b6968
@@ -436,7 +436,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
|
|||||||
if (evt.isRedacted()) {
|
if (evt.isRedacted()) {
|
||||||
auto reason = evt.redactedBecause()->reason();
|
auto reason = evt.redactedBecause()->reason();
|
||||||
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>")
|
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>")
|
||||||
: i18n("<i>[This message was deleted: %1]</i>", evt.redactedBecause()->reason());
|
: i18n("<i>[This message was deleted: %1]</i>", evt.redactedBecause()->reason().toHtmlEscaped());
|
||||||
}
|
}
|
||||||
return EventHandler::richBody(m_currentRoom, &evt);
|
return EventHandler::richBody(m_currentRoom, &evt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user