From 853f0128022edb89026fa15db159cf5d2b5f24f6 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 19 May 2017 20:21:28 -0400 Subject: [PATCH] fix #2631: regression introduced in 02323826950c7d99b65d93f9edb8fa018159973c --- src/js/traffic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index 1665b8d93..39ba7dbc8 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -313,7 +313,7 @@ var toBlockDocResult = function(url, hostname, logData) { // https://github.com/chrisaljoudi/uBlock/issues/1212 // Relax the rule: verify that the match is completely before the path part if ( - (match.index + match.length) <= + (match.index + match[0].length) <= (url.indexOf(hostname) + hostname.length + 1) ) { return true;