aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/urlinterceptor.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-03 19:24:40 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-03 19:24:40 +0100
commit05dbc6fb7d8833c183485ec0d846c151b6299c92 (patch)
tree570a9710d125e618a3641822802a89233bdbd5ee /src/webengine/urlinterceptor.cpp
parentListing rules in Blocker dialog (diff)
downloadsmolbote-05dbc6fb7d8833c183485ec0d846c151b6299c92.tar.xz
option parsing
Diffstat (limited to 'src/webengine/urlinterceptor.cpp')
-rw-r--r--src/webengine/urlinterceptor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webengine/urlinterceptor.cpp b/src/webengine/urlinterceptor.cpp
index cc196ba..fbcef64 100644
--- a/src/webengine/urlinterceptor.cpp
+++ b/src/webengine/urlinterceptor.cpp
@@ -28,14 +28,14 @@ UrlRequestInterceptor::UrlRequestInterceptor(QObject *parent) :
void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
{
for(BlockerRule *rule : m_sub->urlWhitelist()) {
- if(rule->match(info.requestUrl())) {
+ if(rule->match(info)) {
qDebug("OK %s", qUtf8Printable(info.requestUrl().toString()));
return;
}
}
for(BlockerRule *rule : m_sub->urlBlacklist()) {
- if(rule->match(info.requestUrl())) {
+ if(rule->match(info)) {
info.block(true);
qDebug(" %s", qUtf8Printable(info.requestUrl().toString()));
return;