From b1b716ec2ed8b9649f3174746336c030099b8b13 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 7 Jan 2010 04:01:22 +0100 Subject: Removed forced url sanization --- src/application.cpp | 21 +-------------------- src/application.h | 2 -- 2 files changed, 1 insertion(+), 22 deletions(-) (limited to 'src') 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 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 s_historyManager; static QPointer s_bookmarkProvider; static QPointer s_sessionManager; -- cgit v1.2.1