This project is archived and is in readonly mode.
Wrong parsing paremeters with a semilocon ( ; ) char
Reported by Alexander C | March 19th, 2010 @ 12:08 AM | in 3.0.2
When I post some parameter to any controller in my app ( rails 2.3.5 ) something like this:
name=Alexander;Cabezas
I get this:
{"html"=>"Alexander", "Cabezas"=>nil}
Apparently, it isn't parsing well the parameters with semicolon character on it.
Any thoughts?
Comments and changes to this ticket
-
Yehuda Katz (wycats) March 29th, 2010 @ 07:03 AM
- State changed from new to invalid
- Tag changed from rails 2.3.5 parameter parsing bug to rack
- Assigned user set to Yehuda Katz (wycats)
- Milestone cleared.
This is an issue with Rack's parameter parsing. While it's legal for them to treat ; as a separator, it's probably a poor choice:
The problem is in rack/utils.rb:29
DEFAULT_SEP = /[&;] */n
-
Andrew White March 29th, 2010 @ 10:20 AM
Whether it's a poor choice is open for debate but it is a W3C recommendation that the semicolon is supported as a parameter separator:
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>