Double quotes stripped from Params

Rails 2.3.9

I have a form with an input field. If a user enters a phrase surrounded
by quotes the value appears in the params object without the quotes.

For example:

I enter “have fun” in the form.

When I submit and inspect params I see:

{“q”=>“have fun”, “Search”=>“Search”, “controller”=>“search”,
“action”=>“index”}

I look at request.query_string and see:
&q=%22have+fun%22+&Search=Search

Now if I enter the same phrase but have a space in front of it the
quotes come through:

{“q”=>" “have fun”", “Search”=>“Search”, “controller”=>“search”,
“action”=>“index”}

&q=+%22have+fun%22&Search=Search

Can anyone explain why this is and if there is a workaround?

“action”=>“index”}

&q=+%22have+fun%22&Search=Search

Can anyone explain why this is and if there is a workaround?

It’s a problem with the version or rack you’re using…

Upgrade to a later version that has the above change in it…

-philip

Thank you