url-polyfill icon indicating copy to clipboard operation
url-polyfill copied to clipboard

Error parsing params values with =

Open Serginho opened this issue 6 years ago • 1 comments

= simbol is allowed as a url param value.

Example: new UrlSearchParams('?param1=valuewith=&param2=bar');

This example breaks un the unexpected value: {param1: valuewith , param2: bar}

expected: {param1: valuewith= , param2: bar}

Serginho avatar Nov 02 '18 12:11 Serginho

I've run into this issue with base64 encoded values as well. Results for new URLSearchParams('q=GVzdA==').get('q') is GVzdA with the polyfill but in Chrome, Firefox and Edge it's GVzdA==.

alexturpin avatar Jan 15 '19 21:01 alexturpin