提交 28b65c91 编写于 作者: J Joshua Peek

Removed Prototype specific Safari 2 AJAX hack.

The normal null character stripper is still there.
上级 fa7aa19a
......@@ -10,7 +10,6 @@ module Utils
def parse_query(qs, d = '&;')
qs = qs.dup
qs.chop! if qs[-1] == 0
qs.gsub!(/&_=$/, '')
parse_query_without_ajax_body_cleanup(qs, d)
end
module_function :parse_query
......
......@@ -156,12 +156,6 @@ def teardown
assert_parses expected, query
end
test "parses params with Prototype's hack around Safari 2 trailing null character" do
query = "selected[]=1&selected[]=2&selected[]=3&_="
expected = { "selected" => [ "1", "2", "3" ] }
assert_parses expected, query
end
test "passes through rack middleware and parses params" do
with_muck_middleware do
assert_parses({ "a" => { "b" => "c" } }, "a[b]=c")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册