String.parseQueryString() bug #1123

Open
piotr-cz opened this Issue Apr 30, 2012 · 0 comments

Projects

None yet

1 participant

@piotr-cz
piotr-cz commented Apr 30, 2012 edited by arian

Happens when using encoded arrays as keys

see
http://jsfiddle.net/piotr_cz/y28zb/

Problem is that keys are being parsed using RegEx to arrays and then decoded. Should be other way around.

keys = index ? val.substr(0, index - 1).match(/([^\]\[]+|(\B)(?=\]))/g) : [val],
...
keys.each(function(key, i){
                if (decodeKeys) key = decodeURIComponent(key);

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/359803-string-parsequerystring-bug?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment