mirror of https://github.com/gorhill/uBlock.git
Empty query parameters must still use `=`
Related issue: https://github.com/uBlockOrigin/uAssets/commit/453b544f31
This commit is contained in:
parent
edf7897eb5
commit
1cac61a9a4
|
@ -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 New Issue