-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect parsing of query strings #4
Comments
So what value should be under |
PHP is broken then, but we all knew that. On Friday, 22 February 2013, Radosław Mejer wrote:
|
Ok, so what is the correct value then? Can You give something like RFC to show the right way? |
The correct value would be for miuri to not delete duplicate params when parsing. i.e I'm not sure how you would make a backward compatible change to the query function in order to make it possible to set multiples though. jQuery uses a name, value dictionary. |
Are You talking about arrays passed in GET (something like |
Yes, but that's just a hacky workaround PHP does. its perfectly valid to do a=1&a=2 sans square brackets |
I searched a little at Google. You're right about passing arrays without brackets (didn't know that..). Parsing query string to find arrays without brackets won't be much a problem. |
it is perfectly valid to have ?a=1&a=2 unfortunately as it uses a dictionary internally, these get squashed. i'll try and patch next week.
The text was updated successfully, but these errors were encountered: