mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Fix entity-based lookup in html & scriptlet filtering
Entity-based filters where not properly looked-up if they used subdomains. Example: - `example.*##^script` => ok - `www.example.*##^script` => failed on `https://www.example.com/`
This commit is contained in:
parent
ed94692238
commit
a73dd0a9f2
@ -356,7 +356,7 @@
|
||||
);
|
||||
if ( details.entity !== '' ) {
|
||||
filterDB.retrieve(
|
||||
`${hostname.slice(0, -details.domain)}${details.entity}`,
|
||||
`${hostname.slice(0, -details.domain.length)}${details.entity}`,
|
||||
[ plains, exceptions, procedurals, exceptions ]
|
||||
);
|
||||
}
|
||||
|
@ -369,7 +369,7 @@
|
||||
);
|
||||
if ( request.entity !== '' ) {
|
||||
scriptletDB.retrieve(
|
||||
`${hostname.slice(0, -request.domain)}${request.entity}`,
|
||||
`${hostname.slice(0, -request.domain.length)}${request.entity}`,
|
||||
[ scriptlets, exceptions ]
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user