summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/application.cpp21
-rw-r--r--src/application.h2
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;