Escape potential HTML in notifications
Originally done in https://gitlab.com/spectral-im/spectral/-/merge_requests/74
This commit is contained in:
@@ -35,7 +35,7 @@ void NotificationsManager::postNotification(const QString &roomid, const QString
|
|||||||
img.convertFromImage(icon);
|
img.convertFromImage(icon);
|
||||||
KNotification *notification = new KNotification("message");
|
KNotification *notification = new KNotification("message");
|
||||||
notification->setTitle(i18n("%1 (%2)", sender, roomname));
|
notification->setTitle(i18n("%1 (%2)", sender, roomname));
|
||||||
notification->setText(text);
|
notification->setText(text.toHtmlEscaped());
|
||||||
notification->setPixmap(img);
|
notification->setPixmap(img);
|
||||||
notification->sendEvent();
|
notification->sendEvent();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user