From 59ef9b8c4fe1eda36c1b87d08be81e2062490458 Mon Sep 17 00:00:00 2001 From: megabigbug Date: Mon, 14 Jun 2010 21:25:07 +0200 Subject: escape html in search item: prevent qlabel interpret html if the user type

a

for example. --- src/urlbar/listitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index 97cd5cd8..037afb06 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -53,7 +53,7 @@ #include #include #include - +#include ListItem::ListItem(const UrlSearchItem &item, QWidget *parent) : QWidget(parent) @@ -299,7 +299,7 @@ SearchListItem::SearchListItem(const UrlSearchItem &item, const QString &text, Q QString SearchListItem::searchItemTitle(QString engine, QString text) { - return QString(i18nc("%1=search engine, e.g. Google, Wikipedia %2=text to search for", "Search %1 for %2", engine, text)); + return QString(i18nc("%1=search engine, e.g. Google, Wikipedia %2=text to search for", "Search %1 for %2", engine, Qt::escape(text))); } -- cgit v1.2.1