Skip to content
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

Ajax query string, Hash.toQueryPair, and mod_perl #309

Open
trevor-indosoft opened this issue Jan 12, 2016 · 0 comments
Open

Ajax query string, Hash.toQueryPair, and mod_perl #309

trevor-indosoft opened this issue Jan 12, 2016 · 0 comments

Comments

@trevor-indosoft
Copy link

I came across an issue with Ajax requests handled by mod_perl yesterday that may need to be addressed. Currently, toQueryPair returns only the key if the value is undefined. This can result in a query string along the lines of key1=value1&key2=value2&key3&key4=value4 being interpreted as ('key1' => 'value1', 'key2' => 'value2', 'key3&key4' => 'value4'). Simply adding an equal sign remedies the problem -- key1=value1&key2=value2&key3=&key4=value4 is interpreted as ('key1' => 'value1', 'key2' => 'value2', 'key3' => '', 'key4' => 'value4')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant