diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-05-25 16:17:45 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-05-25 16:17:45 +0200 |
commit | 02c82cfdb82809a36f5f2a697a6ecbc01880ace6 (patch) | |
tree | be3dfe1de3db5afe9f69a2dc19ee3b426d3f42f7 /src/webpage.cpp | |
parent | Minor speed-up (diff) | |
download | rekonq-02c82cfdb82809a36f5f2a697a6ecbc01880ace6.tar.xz |
Another clean up in rekonq file:// pages
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 8 |
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")); |