sindresorhus / normalize-url

Normalize a URL
MIT License
837 stars 123 forks source link

`sortQueryParameters` buggy handling of search parameters #189

Open nomagick opened 2 months ago

nomagick commented 2 months ago

https://github.com/sindresorhus/normalize-url/blob/4869023f4f2766b58e1954fd30e5f1609d2cf8e7/index.js#L245-L248

When the query string contains %2F or / like in some S3 signed token, the extra decodeURIComponent breaks the URL.