Browse Source

Only consider hostname blocklisted if it's a full match

Fixes https://github.com/uBlockOrigin/uMatrix-issues/issues/284
pull/2/head
xofe 4 years ago
parent
commit
c9ddc9d5d0
  1. 4
      src/js/matrix.js

4
src/js/matrix.js

@ -388,7 +388,9 @@ Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) {
// srcHostname is '*' at this point // srcHostname is '*' at this point
// Preset blacklisted hostnames are blacklisted in global scope // 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; return 1;
} }

Loading…
Cancel
Save