diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-26 02:49:09 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-26 02:49:09 +0000 |
commit | 04fda65306e5779d89a93ec3e9e7cf8541ead144 (patch) | |
tree | eef94d964ba349a2a4ff71d0ae0295b4149a1ff0 /actionpack/lib | |
parent | 9e054fdf417078763e80ba975dde5672017ebf9f (diff) | |
download | rails-04fda65306e5779d89a93ec3e9e7cf8541ead144.tar.gz rails-04fda65306e5779d89a93ec3e9e7cf8541ead144.tar.bz2 rails-04fda65306e5779d89a93ec3e9e7cf8541ead144.zip |
Changed the POST parameter processing to use the new QueryStringParser and make the result a indifferent hash [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4821 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/cgi_process.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 5f4f8d80d5..0bd6ae5bdd 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -156,7 +156,7 @@ class CGIMethods #:nodoc: end - return result + return result.with_indifferent_access end # Skip over the current term by scanning past the next &, or to diff --git a/actionpack/lib/action_controller/cgi_process.rb b/actionpack/lib/action_controller/cgi_process.rb index e983912158..d409c66a8a 100644 --- a/actionpack/lib/action_controller/cgi_process.rb +++ b/actionpack/lib/action_controller/cgi_process.rb @@ -68,7 +68,7 @@ module ActionController #:nodoc: if ActionController::Base.param_parsers.has_key?(content_type) CGIMethods.parse_formatted_request_parameters(content_type, @env['RAW_POST_DATA']) else - CGIMethods.parse_request_parameters(@cgi.params) + CGIMethods.parse_query_parameters(@env['RAW_POST_DATA'] || "") end end |