This commit is contained in:
gorhill 2015-02-24 20:27:47 -05:00
parent 6323c8c69d
commit f65d44ba47
1 changed files with 6 additions and 0 deletions

View File

@ -521,6 +521,12 @@ Matrix.prototype.fromString = function(text, append) {
continue;
}
// https://github.com/gorhill/uBlock/issues/840
// Discard invalid rules
if ( desHostname !== '*' && type !== '*' ) {
continue;
}
action = nameToActionMap[fields[3]];
if ( typeof action !== 'number' || action < 0 || action > 3 ) {
continue;