diff options
author | Cedric Bellegarde <gnumdk@gmail.com> | 2011-10-17 08:34:17 +0200 |
---|---|---|
committer | Cedric Bellegarde <gnumdk@gmail.com> | 2011-10-17 08:34:17 +0200 |
commit | 2b2adbcfcb6ed81edb2e4646735285935e61c624 (patch) | |
tree | 52f983051b7c81e06c00ab20d64471c429320b1d /src/protocolhandler.cpp | |
parent | Update menu bar tools (useful for people using plasma-menubar/oxygen-appmenu) (diff) | |
parent | rekonq 0.8.50: First development version on the road to 0.9... (diff) | |
download | rekonq-2b2adbcfcb6ed81edb2e4646735285935e61c624.tar.xz |
Merge branch 'master' of git.kde.org:rekonq
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r-- | src/protocolhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 2af4214f..9bd029f2 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -55,6 +55,7 @@ // Qt Includes #include <QtNetwork/QNetworkRequest> #include <QtWebKit/QWebFrame> +#include <QTextDocument> static bool fileItemListLessThan(const KFileItem &s1, const KFileItem &s2) @@ -298,14 +299,14 @@ QString ProtocolHandler::dirHandling(const KFileItemList &list) Q_FOREACH(const KFileItem & item, orderedList) { msg += "<tr>"; - QString fullPath = item.url().prettyUrl(); + QString fullPath = Qt::escape(item.url().prettyUrl()); QString iconName = item.iconName(); QString icon = QString("file://") + KIconLoader::global()->iconPath(iconName, KIconLoader::Small); msg += "<td width=\"70%\">"; msg += "<img src=\"" + icon + "\" alt=\"" + iconName + "\" /> "; - msg += "<a href=\"" + fullPath + "\">" + item.name() + "</a>"; + msg += "<a href=\"" + fullPath + "\">" + Qt::escape(item.name()) + "</a>"; msg += "</td>"; msg += "<td align=\"right\">"; |