mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
this fixes #840
This commit is contained in:
parent
6323c8c69d
commit
f65d44ba47
@ -521,6 +521,12 @@ Matrix.prototype.fromString = function(text, append) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/840
|
||||||
|
// Discard invalid rules
|
||||||
|
if ( desHostname !== '*' && type !== '*' ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
action = nameToActionMap[fields[3]];
|
action = nameToActionMap[fields[3]];
|
||||||
if ( typeof action !== 'number' || action < 0 || action > 3 ) {
|
if ( typeof action !== 'number' || action < 0 || action > 3 ) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user