diff options
author | Marcel Molina <marcel@vernix.org> | 2006-06-28 13:51:25 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-06-28 13:51:25 +0000 |
commit | c02d1f7d9b73f708d8f656044b096454344ccb78 (patch) | |
tree | 2d28c2950159a2e627e38eb435591bdc72fe4a7b /actionpack/lib/action_controller | |
parent | 68a320ad2047c483b4b07cd51c5043cdef562adb (diff) | |
download | rails-c02d1f7d9b73f708d8f656044b096454344ccb78.tar.gz rails-c02d1f7d9b73f708d8f656044b096454344ccb78.tar.bz2 rails-c02d1f7d9b73f708d8f656044b096454344ccb78.zip |
Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [mislav@nippur.irb.hr]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-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 e7de428a9f..1204c57f00 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 @@ -36,7 +36,7 @@ class CGI #:nodoc: if boundary = extract_multipart_form_boundary(content_type) @multipart = true @params = read_multipart(boundary, content_length) - elsif content_type.downcase != 'application/x-www-form-urlencoded' + elsif content_type.blank? || content_type.downcase != 'application/x-www-form-urlencoded' read_params(method, content_length) @params = {} end |