From c9ddc9d5d05a08bb092ecbd0a05de7ae9fd6cd67 Mon Sep 17 00:00:00 2001 From: xofe <22776566+xofe@users.noreply.github.com> Date: Fri, 14 Aug 2020 06:11:28 +0000 Subject: [PATCH] Only consider hostname blocklisted if it's a full match Fixes https://github.com/uBlockOrigin/uMatrix-issues/issues/284 --- src/js/matrix.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/matrix.js b/src/js/matrix.js index 7a19b68..3fafe52 100644 --- a/src/js/matrix.js +++ b/src/js/matrix.js @@ -388,7 +388,9 @@ Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) { // srcHostname is '*' at this point // Preset blacklisted hostnames are blacklisted in global scope - if ( type === '*' && µm.ubiquitousBlacklistRef.matches(desHostname) !== -1 ) { + // https://github.com/uBlockOrigin/uMatrix-issues/issues/284 + // Only consider hostname blocklisted if it's a full match. + if ( type === '*' && µm.ubiquitousBlacklistRef.matches(desHostname) === 0 ) { return 1; }