surf-adblock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c08593ce08d4b64713b3d8dd5433e9226d9df018
parent 3c2028b5af591cb00fdf7dbc06bb55e1bcdc4eed
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun, 17 Jul 2016 03:05:57 +0200

do not block explicitely requested uris

Diffstat:
surf-adblock.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/surf-adblock.c b/surf-adblock.c @@ -773,7 +773,8 @@ sendrequest(WebKitWebPage *wp, WebKitURIRequest *req, *requri = webkit_uri_request_get_uri(req); char *domain; - if (!uri || strncmp(uri, "http://", sizeof("http://") - 1) && + if (!uri || !strcmp(requri, uri) || + strncmp(uri, "http://", sizeof("http://") - 1) && strncmp(uri, "https://", sizeof("https://") - 1)) return FALSE;