From ce3ac010b50bc2dc56bd32c835c96c25600ff8c0 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 13 Feb 2022 09:41:54 -0500 Subject: [PATCH] Fix improper handling of match-all removeparam Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/1978#issuecomment-1038143619 --- src/js/static-net-filtering.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index f28c6ca10..53ef8a48b 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -2926,11 +2926,7 @@ class FilterCompiler { processModifierOption(modifier, value) { if ( this.modifyType !== undefined ) { return false; } this.modifyType = modifier; - if ( value !== undefined ) { - this.modifyValue = value; - } else if ( this.action === AllowAction ) { - this.modifyValue = ''; - } + this.modifyValue = value || ''; return true; }