From 1cac61a9a4193801105e8586bc540e9ddcb00d51 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 14 Jan 2024 08:03:03 -0500 Subject: [PATCH] Empty query parameters must still use `=` Related issue: https://github.com/uBlockOrigin/uAssets/commit/453b544f31 --- 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 d1e9a702c609a..f0d8822b2c053 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -5422,7 +5422,7 @@ FilterContainer.prototype.filterQuery = function(fctxt) { fctxt.redirectURL = url.slice(0, qpos); if ( params.size !== 0 ) { fctxt.redirectURL += '?' + Array.from(params).map(a => - a[1] === '' ? a[0] : `${a[0]}=${a[1]}` + a[1] === '' ? `${a[0]}=` : `${a[0]}=${a[1]}` ).join('&'); } if ( hpos !== url.length ) {