summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 9803d8a3..e8c204f8 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -253,5 +253,9 @@ QString WebPage::errorPage(QNetworkReply *reply)
bool WebPage::authorizedRequest(const QUrl &url) const
{
+ // we filter just http sites
+ if(url.scheme() != QLatin1String("http"))
+ return true;
+
return m_adBlockMan->isUrlAllowed(url);
}