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

Do not decode query parameter name when used as token

Related feedback:
- https://github.com/DandelionSprout/adfilt/discussions/163#discussioncomment-1628496
This commit is contained in:
Raymond Hill 2021-11-12 08:24:30 -05:00
parent 5381e3bfe2
commit dea7184f30
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -3362,7 +3362,7 @@ class FilterCompiler {
if ( pattern.startsWith('|') ) {
return this.extractTokenFromRegex('\\b' + pattern.slice(1));
}
this.extractTokenFromPattern(encodeURIComponent(pattern).toLowerCase());
this.extractTokenFromPattern(pattern.toLowerCase());
}
hasNoOptionUnits() {