diff options
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 21 |
1 files changed, 1 insertions, 20 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 |