Rails: losing quotes in post parameters

萝らか妹 提交于 2019-12-05 21:43:39
Jonathan Tran

Apparently this is a bug in rack 1.1.0. The fix [patch here] was made for rack 1.2.0. However, actionpack (and thus, rails) 2.3.6 through 2.3.10 depend on rack ~> 1.1.0, so they all have this problem.

Potential solutions with most likely actually happening ordered first...

  • Patch your copy of rack based on above fix
  • Upgrade to Rails 3

This question has tips on how to patch rack.

This page has step-by-step instructions on how to patch rack via your app source code; no messing around with gems required. It worked like a charm for me (Rails 2.3.10).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!