From 02c82cfdb82809a36f5f2a697a6ecbc01880ace6 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 25 May 2012 16:17:45 +0200 Subject: Another clean up in rekonq file:// pages --- src/webpage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 6cd52bd7..cbf1f573 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -574,6 +574,10 @@ QString WebPage::errorPage(QNetworkReply *reply) return QString("Couldn't open the rekonqinfo.html file"); } + // NOTE: + // this, to take care about XSS (see BUG 217464)... + QString urlString = Qt::escape(reply->url().toString()); + // 1. data path QString dataPath = QL1S("file://") + notfoundFilePath; dataPath.remove(QL1S("/htmls/rekonqinfo.html")); @@ -581,10 +585,6 @@ QString WebPage::errorPage(QNetworkReply *reply) // 2. title QString title = i18n("There was a problem while loading the page"); - // NOTE: - // this, to take care about XSS (see BUG 217464)... - QString urlString = Qt::escape(reply->url().toString()); - QString iconPath = QString("file://") + KIconLoader::global()->iconPath("dialog-warning" , KIconLoader::Small); iconPath.replace(QL1S("16"), QL1S("128")); -- cgit v1.2.1