diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-01-07 04:01:22 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-01-07 04:01:22 +0100 |
commit | b1b716ec2ed8b9649f3174746336c030099b8b13 (patch) | |
tree | 1cce802f9c1458e02abeeb9c8a7e349a502301f8 | |
parent | A new inspection action in contextual menu (diff) | |
download | rekonq-b1b716ec2ed8b9649f3174746336c030099b8b13.tar.xz |
Removed forced url sanization
-rw-r--r-- | src/application.cpp | 21 | ||||
-rw-r--r-- | src/application.h | 2 |
2 files changed, 1 insertions, 22 deletions
diff --git a/src/application.cpp b/src/application.cpp index 15945b32..3f08386b 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -271,7 +271,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) if (url.isEmpty()) return; - KUrl loadingUrl = xssSanitization(url); + KUrl loadingUrl(url); if ( !loadingUrl.isValid() ) { @@ -279,10 +279,6 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) return; } - /* // loading home pages - if (mainWindow()->newTabPage(loadingUrl)) - return;*/ - if (loadingUrl.scheme() == QLatin1String("mailto")) { KToolInvocation::invokeMailer(loadingUrl); @@ -405,19 +401,4 @@ AdBlockManager *Application::adblockManager() } return s_adblockManager; } - - -KUrl Application::xssSanitization(const KUrl &url) -{ - QString urlString = url.url(); - - QList<QChar> l; // TODO: learn regular expression - l << '\'' << '\"' << '<' << '>'; - foreach(const QChar &c, l) - { - QStringList list = urlString.split(c); - urlString = list.at(0); - } - return KUrl(urlString); -}
\ No newline at end of file diff --git a/src/application.h b/src/application.h index fa2354f2..12ff2e3b 100644 --- a/src/application.h +++ b/src/application.h @@ -134,8 +134,6 @@ private slots: void postLaunch(); private: - KUrl xssSanitization(const KUrl &url); - static QPointer<HistoryManager> s_historyManager; static QPointer<BookmarkProvider> s_bookmarkProvider; static QPointer<SessionManager> s_sessionManager; |