diff options
author | Mark Reginald James <mrj@advancedcontrols.com.au> | 2008-12-28 01:15:48 +0000 |
---|---|---|
committer | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-28 01:15:48 +0000 |
commit | 5138f755ff31a8f317d649a6f256c74bc371db70 (patch) | |
tree | ac50b3fb5b021e36826ceca1097e3eb101de94c3 /actionpack/test/controller | |
parent | afdec83ed543e904b495d3225b6401101ea7ba6c (diff) | |
download | rails-5138f755ff31a8f317d649a6f256c74bc371db70.tar.gz rails-5138f755ff31a8f317d649a6f256c74bc371db70.tar.bz2 rails-5138f755ff31a8f317d649a6f256c74bc371db70.zip |
Fixed incorrect parsing of query parameters with mixed-depth nesting inside an array [#1622 state:resolved]
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 349cea268f..c93d3152b8 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -441,6 +441,7 @@ class UrlEncodedRequestParameterParsingTest < ActiveSupport::TestCase def test_deep_query_string_with_array_of_hash assert_equal({'x' => {'y' => [{'z' => '10'}]}}, ActionController::RequestParser.parse_query_parameters('x[y][][z]=10')) assert_equal({'x' => {'y' => [{'z' => '10', 'w' => '10'}]}}, ActionController::RequestParser.parse_query_parameters('x[y][][z]=10&x[y][][w]=10')) + assert_equal({'x' => {'y' => [{'z' => '10', 'v' => {'w' => '10'}}]}}, ActionController::RequestParser.parse_query_parameters('x[y][][z]=10&x[y][][v][w]=10')) end def test_deep_query_string_with_array_of_hashes_with_one_pair |