diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-31 11:46:50 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-31 11:46:50 +0000 |
commit | 93e361e58a5bbde17e23bcbb6ed281e602baa039 (patch) | |
tree | 2305853b16fd477b0d22fe05064395e2b7123cca /actionpack/lib/action_controller/cgi_ext | |
parent | 0de97c81dbe80e4abc50ec1434b33fe3219f2fd4 (diff) | |
download | rails-93e361e58a5bbde17e23bcbb6ed281e602baa039.tar.gz rails-93e361e58a5bbde17e23bcbb6ed281e602baa039.tar.bz2 rails-93e361e58a5bbde17e23bcbb6ed281e602baa039.zip |
Fixed that on very rare occasions, webrick would raise a NoMethodError: private method 'split' called for nil #1001 [Flurin Egger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1045 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 d5ff103b45..5be4b57c66 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.split("&_").first.freeze # &_ is a fix for Safari Ajax postings that always append \000 + env_table['RAW_POST_DATA'] = content.split("&_").first.to_s.freeze # &_ is a fix for Safari Ajax postings that always append \000 else read_from_cmdline end |