Skip to content
Snippets Groups Projects
Commit 45b5629f authored by Thulinma's avatar Thulinma
Browse files

Fix a few more HTML injections

parent 7bb1b1c6
No related branches found
No related tags found
No related merge requests found
Pipeline #1776 passed
......@@ -77,7 +77,7 @@ RoomsModel::data(const QModelIndex &index, int role) const
return QString::fromStdString(
roomInfos.at(roomids[index.row()]).avatar_url);
case Roles::RoomID:
return roomids[index.row()];
return roomids[index.row()].toHtmlEscaped();
}
}
return {};
......
......@@ -16,8 +16,8 @@ struct Reaction
Q_PROPERTY(int count READ count)
public:
QString key() const { return key_; }
QString users() const { return users_; }
QString key() const { return key_.toHtmlEscaped(); }
QString users() const { return users_.toHtmlEscaped(); }
QString selfReactedEvent() const { return selfReactedEvent_; }
int count() const { return count_; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment