mongrel - Rails: losing quotes in post parameters -


I am looking to add full-text search for the rail site and users to enter double quotation marks in the search input box Allows The problem is that the double is filtered by Mongrl quotes and therefore I do not get these quotes values ​​of parameters hash. How do I stop it from happening? I'm running Rails 2.3.8.

[Edit: Added analyze data]

I see Fayrbg post parameter being posted correctly with quotes:

  search_criteria "great post" / code>  

the development log, however, quotes are gone:

processing PostsController # search (of 127.0.0.1 2010 -06-18 at 17:28: 45) [post] parameter: { "Search_criteria" => "great post", "action" => "search", "Authenticity_token" => "XUaOclIAyjQmKnlNGqBpPVaTBmD4ayPq / LUJsqJGCxY =", "controller "=>" Posts "}

And when I Log in the size of the content and parameters [: search_criteria] In the controller, I get:

  search criteria = great post search criteria size = 10  

[edit: new search] is not described above another character when the quoted string is backward or before it is a problem, such as a space.

Of course there is a bug in the rack 1.1.0. Fixed [Rack] was made for 1.2.0. However, the action pack (and thus, the rail) depends on the 2.3.6 to the 2.3.10 rack ~~ 1.1.0, so they all have this problem.

Perhaps the first possible solution to the first order ...

  • Patch a copy of the rack on the basis of the above criteria
  • Upgrade to Rail 3

How to Patch the Rack


Comments