1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

Pure origin filters can't have denyallow option

This fixes filters of the form:

  *$[...],denyallow=[...],domain=[...]
  |http://$[...],denyallow=[...],domain=[...]
  |https://$[...],denyallow=[...],domain=[...]
This commit is contained in:
Raymond Hill 2020-04-13 14:22:21 -04:00
parent 415035b42d
commit 94935a4b9e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -2645,6 +2645,7 @@ const FilterParser = class {
isJustOrigin() {
return this.isRegex === false &&
this.dataType === undefined &&
this.denyallow === '' &&
this.domainOpt !== '' && (
this.f === '*' || (
this.anchor === 0b010 &&