aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-02 12:46:14 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-02 12:46:14 -0600
commit4dee277a9bc05083de6c831cf9aae0846849ecda (patch)
treea2e4e2c95bbf7ffd8fd6ace21d95240a4bc6af03 /actionpack/lib
parentc0949cc8f6c73111075e2c5b41f22f4b99a8ab26 (diff)
downloadrails-4dee277a9bc05083de6c831cf9aae0846849ecda.tar.gz
rails-4dee277a9bc05083de6c831cf9aae0846849ecda.tar.bz2
rails-4dee277a9bc05083de6c831cf9aae0846849ecda.zip
Stop escaping "[]" in query string
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index f029b634d6..5e9c36bbaf 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -486,9 +486,7 @@ module ActionDispatch
}.join("&")
when String
raise ArgumentError, "value must be a Hash" if prefix.nil?
- "#{Rack::Utils.escape(prefix)}=#{Rack::Utils.escape(value)}"
- when NilClass
- Rack::Utils.escape(prefix)
+ "#{prefix}=#{Rack::Utils.escape(value)}"
else
if value.respond_to?(:to_param)
build_nested_query(value.to_param.to_s, prefix)