diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-27 00:10:53 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-27 00:10:53 +0000 |
commit | 216b1b78976076cb160a23aa1618135613de8d25 (patch) | |
tree | 1d977e710edeae844554044567eb225d09fac5ab /actionpack/lib/action_controller/cgi_ext | |
parent | ad6798f965d74568bf0722f595dcb84bc3e82b0b (diff) | |
download | rails-216b1b78976076cb160a23aa1618135613de8d25.tar.gz rails-216b1b78976076cb160a23aa1618135613de8d25.tar.bz2 rails-216b1b78976076cb160a23aa1618135613de8d25.zip |
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
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext')
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb index 1905fdf9b2..d5ff103b45 100644 --- a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +++ b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb @@ -37,7 +37,7 @@ class CGI #:nodoc: 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 |