query-string icon indicating copy to clipboard operation
query-string copied to clipboard

Decoding in parse() applied too late

Open Mereidos opened this issue 5 years ago • 0 comments

The decoding that takes place in parse() happens too late, leading to encoded '?', '&' and '=' signs not being interpreted correctly:

VERSION: 6.13.1

ACTUAL RESULT: parse(?key1=value1&key2=value2) returns: {"key1":"value1","key2":"value2"} parse(%3Fkey1%3Dvalue1%26key2%3Dvalue2) returns: {"?key1=value1&key2=value2":null}

EXPECTED RESULT: parse(?key1=value1&key2=value2) returns: {"key1":"value1","key2":"value2"} parse(%3Fkey1%3Dvalue1%26key2%3Dvalue2) returns: {"key1":"value1","key2":"value2"}

Mereidos avatar Aug 05 '20 07:08 Mereidos