Fixed "bad environment variable value" exception caused by Safari, Apache, and Ajax calls #918

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 ad6798f9
*SVN*
* Fixed "bad environment variable value" exception caused by Safari, Apache, and Ajax calls #918
* Fixed that pagination_helper would ignore :params #947 [Sebastian Kanthak]
* Added :owerwrite_params back to url_for and friends -- it was AWL since the introduction of Routes #921 [raphinou]
......
......@@ -37,7 +37,7 @@ def read_query_params
when 'POST'
stdinput.binmode if stdinput.respond_to?(:binmode)
content = stdinput.read(Integer(env_table['CONTENT_LENGTH'])) || ''
env_table['RAW_POST_DATA'] = content.freeze
env_table['RAW_POST_DATA'] = content.split("&_").first.freeze # &_ is a fix for Safari Ajax postings that always append \000
else
read_from_cmdline
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册