mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-05-19 03:33:17 +12:00
Only consider hostname blocklisted if it's a full match
Fixes https://github.com/uBlockOrigin/uMatrix-issues/issues/284
This commit is contained in:
parent
0bcb7669e7
commit
c9ddc9d5d0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue