From kde-commits Sat Aug 01 18:06:29 2009 From: Martin Koller Date: Sat, 01 Aug 2009 18:06:29 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/pager Message-Id: <1249149989.621138.19461.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124914999721268 SVN commit 1005668 by mkoller: escape the window title text so that HTML tags inside it are not rendered as HTML. (same problem as #52223) M +3 -2 pager.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #1005667:1005668 @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -1265,12 +1266,12 @@ if ((taskCounter < 4) || active){ QPixmap icon = KWindowSystem::icon(winInfo.win(), 16, 16, true); if (icon.isNull()) { - subtext += "
•" + winInfo.visibleName(); + subtext += "
•" + Qt::escape(winInfo.visibleName()); } else { data.addResource(Plasma::ToolTipContent::ImageResource, QUrl("wicon://" + QString::number(taskCounter)), QVariant(icon)); subtext += "
"; } - subtext += (active ? "" : "") + winInfo.visibleName() + (active ? "" : ""); + subtext += (active ? "" : "") + Qt::escape(winInfo.visibleName()) + (active ? "" : ""); displayedTaskCounter++; windows.append(winInfo.win());