Result is made indifferent on the way out

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 04fda653
*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]
......
......@@ -156,7 +156,7 @@ def parse
end
return result.with_indifferent_access
return result
end
# Skip over the current term by scanning past the next &, or to
......
......@@ -29,7 +29,6 @@ def test_query_string
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册