mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
ad6798f965
commit
216b1b7897
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
*SVN*
|
*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]
|
* 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]
|
* Added :owerwrite_params back to url_for and friends -- it was AWL since the introduction of Routes #921 [raphinou]
|
||||||
|
|
|
@ -37,7 +37,7 @@ class CGI #:nodoc:
|
||||||
when 'POST'
|
when 'POST'
|
||||||
stdinput.binmode if stdinput.respond_to?(:binmode)
|
stdinput.binmode if stdinput.respond_to?(:binmode)
|
||||||
content = stdinput.read(Integer(env_table['CONTENT_LENGTH'])) || ''
|
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
|
else
|
||||||
read_from_cmdline
|
read_from_cmdline
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue