1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

Empty query parameters must still use =

Related issue:
https://github.com/uBlockOrigin/uAssets/commit/453b544f31
This commit is contained in:
Raymond Hill 2024-01-14 08:03:03 -05:00
parent edf7897eb5
commit 1cac61a9a4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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 ) {