summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp8
1 files changed, 4 insertions, 4 deletions
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"));