-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix semicolons as separators for GET #781
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
Conversation
Fix to use semicolons as separators for GET not for POST A semicolon ';' should be used as a separator according to a W3.org recommendation http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2 The following commit was for only POST not for GET, but the test is written for GET, which is kind of a discrepancy. Do not truncate POST data on `;`, closes rack#543 rack@71c6911
|
👍 |
|
👍 /cc @raggi since you committed can you take a look at this one? |
|
@spastorino all yours bro ❤️ |
Fix semicolons as separators for GET
Recently rack was changed to have a second argument on the `parse_query` method (in rack/rack#781). Rails relies on this and it's `parse_query` method was missing the second argument. I've bumped rack in the gemspec until it can be released so that tests between Rails master and Rack master pass.
Recently rack was changed to have a second argument on the `parse_query` method (in rack/rack#781). Rails relies on this and it's `parse_query` method was complaining aobut missing the second argument. I changed the arguments to `*` so we don't have this issue in the future and I've bumped rack in the gemspec until it can be released so that tests between Rails master and Rack master pass.
|
This caused a bug in Rails if running rails master with rack master because the method signature of Open PR for fix: rails/rails#19665 |
Recently rack was changed to have a second argument on the `parse_query` method (in rack/rack#781). Rails relies on this and it's `parse_query` method was complaining about missing the second argument. I changed the arguments to `*` so we don't have this issue in the future.
|
👍 |
|
@eileencodes just in case did this d68b93a |
|
👍 thanks! |
|
Thank you for merging this PR and fixing the bug d68b93a! |
|
Looks like this fix did not make it into 1.6.1? Should it also be fixed in the 1.6 stable branch? |
|
@spastorino Do you think this fix can also make it into the 1.6 branch? I checked but the new 1.6.2 doesn't seem to contain this fix. |
|
/cc @tenderlove |
|
Yep, I'll backport this. |
Fix semicolons as separators for GET
|
@tenderlove Thanks! |
|
Backporting this Did Not Go Well. Hopefully #899 will do better. |
Fix to use semicolons as separators for GET not for POST.
(cf. issue: Truncation of POST data on semicolon during param processing (unencoding?) #543)
A semicolon ';' should be used as a separator according to a W3.org recommendation
http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2
The commit 71c6911 was the one for only POST not for GET, but the test was written for GET, which is kind of a discrepancy.