diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-26 02:58:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-26 02:58:55 +0000 |
commit | a78519071c261eab54d587b609bf76eecc7420b0 (patch) | |
tree | e84e323f40aa4d12127a0b7cb34badc1f2373133 /actionpack | |
parent | 04fda65306e5779d89a93ec3e9e7cf8541ead144 (diff) | |
download | rails-a78519071c261eab54d587b609bf76eecc7420b0.tar.gz rails-a78519071c261eab54d587b609bf76eecc7420b0.tar.bz2 rails-a78519071c261eab54d587b609bf76eecc7420b0.zip |
Result is made indifferent on the way out
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 | ||||
-rwxr-xr-x | actionpack/test/controller/cgi_test.rb | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index e1775a8b34..a5c1a3b01e 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,6 +1,6 @@ *SVN* -* Changed the POST parameter processing to use the new QueryStringParser and make the result a indifferent hash [DHH] +* Changed the POST parameter processing to use the new QueryStringParser [DHH] * Add UrlWriter to allow writing urls from Mailers and scripts. [Nicholas Seckar] diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 0bd6ae5bdd..5f4f8d80d5 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.with_indifferent_access + return result end # Skip over the current term by scanning past the next &, or to diff --git a/actionpack/test/controller/cgi_test.rb b/actionpack/test/controller/cgi_test.rb index be0ed1feef..ee2892f618 100755 --- a/actionpack/test/controller/cgi_test.rb +++ b/actionpack/test/controller/cgi_test.rb @@ -29,7 +29,6 @@ class CGITest < Test::Unit::TestCase def test_deep_query_string expected = {'x' => {'y' => {'z' => '10'}}} assert_equal(expected, CGIMethods.parse_query_parameters('x[y][z]=10')) - assert_equal("10", CGIMethods.parse_query_parameters('x[y][z]=10')[:x][:y][:z]) end def test_deep_query_string_with_array |