From dea7184f30742a83cab79c83fbead610d34292de Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 12 Nov 2021 08:24:30 -0500 Subject: [PATCH] Do not decode query parameter name when used as token Related feedback: - https://github.com/DandelionSprout/adfilt/discussions/163#discussioncomment-1628496 --- src/js/static-net-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 80767b548..a0ea78ba6 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -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() {