mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Empty query parameters must still use =
Related issue: https://github.com/uBlockOrigin/uAssets/commit/453b544f31
This commit is contained in:
parent
edf7897eb5
commit
1cac61a9a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue