From: Manuel Nickschas Date: Sun, 12 Apr 2009 09:14:24 +0000 (+0200) Subject: Don't interpret HTML in KNotify popups, fixes #631 X-Git-Tag: 0.5-rc1~224 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=17d5912f299db23a09a78311a5bb3fe5effec5b9;hp=9ea27e456f4163c37118f6dc34188809fc37d6d9 Don't interpret HTML in KNotify popups, fixes #631 --- diff --git a/src/qtui/knotificationbackend.cpp b/src/qtui/knotificationbackend.cpp index 99d52f83..f27a9d76 100644 --- a/src/qtui/knotificationbackend.cpp +++ b/src/qtui/knotificationbackend.cpp @@ -22,6 +22,7 @@ #include #include +#include #include "knotificationbackend.h" @@ -49,7 +50,7 @@ void KNotificationBackend::notify(const Notification &n) { type = "PrivMsgFocused"; break; } - QString message = QString("<%1> %2").arg(n.sender, n.message); + QString message = QString("<%1> %2").arg(n.sender, Qt::escape(n.message)); KNotification *notification = KNotification::event(type, message, DesktopIcon("dialog-information"), QtUi::mainWindow(), KNotification::Persistent|KNotification::RaiseWidgetOnActivation|KNotification::CloseWhenWidgetActivated); connect(notification, SIGNAL(activated(uint)), SLOT(notificationActivated()));