mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 01:29:39 +02:00
Fix mixing hostname and entity in domain=
option
Reported internally.
Related commit:
- 3c67d2b89f
This commit is contained in:
parent
b2d0e95b4f
commit
8310e91e0e
@ -1188,7 +1188,7 @@ const filterOrigin = (( ) => {
|
||||
compiledHit.push(FilterOriginHitSet.compile(hostnameHits.join('|')));
|
||||
}
|
||||
if ( compiledHit.length > 1 ) {
|
||||
compiledHit[0] = [ FilterCompositeAny.compile(compiledHit.slice()) ];
|
||||
compiledHit[0] = FilterCompositeAny.compile(compiledHit.slice());
|
||||
compiledHit.length = 1;
|
||||
}
|
||||
const compiledMiss = [];
|
||||
@ -1804,7 +1804,7 @@ const FilterDenyAllow = class {
|
||||
|
||||
static fromCompiled(args) {
|
||||
const f = new FilterDenyAllow(args[1]);
|
||||
for ( const hn of args[1].split('|') ) {
|
||||
for ( const hn of FilterParser.domainOptIterator(args[1]) ) {
|
||||
if ( hn === '' ) { continue; }
|
||||
f.hndict.add(hn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user