diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-03 19:24:40 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-03 19:24:40 +0100 |
commit | 05dbc6fb7d8833c183485ec0d846c151b6299c92 (patch) | |
tree | 570a9710d125e618a3641822802a89233bdbd5ee /src/webengine/urlinterceptor.cpp | |
parent | Listing rules in Blocker dialog (diff) | |
download | smolbote-05dbc6fb7d8833c183485ec0d846c151b6299c92.tar.xz |
option parsing
Diffstat (limited to 'src/webengine/urlinterceptor.cpp')
-rw-r--r-- | src/webengine/urlinterceptor.cpp | 4 |
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; |