summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-07 04:01:22 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-07 04:01:22 +0100
commitb1b716ec2ed8b9649f3174746336c030099b8b13 (patch)
tree1cce802f9c1458e02abeeb9c8a7e349a502301f8 /src
parentA new inspection action in contextual menu (diff)
downloadrekonq-b1b716ec2ed8b9649f3174746336c030099b8b13.tar.xz
Removed forced url sanization
Diffstat (limited to 'src')
-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;