diff options
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/rack/parse_query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/rack/parse_query.rb b/actionpack/lib/action_dispatch/rack/parse_query.rb index 2f21a57770..15de720f14 100644 --- a/actionpack/lib/action_dispatch/rack/parse_query.rb +++ b/actionpack/lib/action_dispatch/rack/parse_query.rb @@ -8,7 +8,7 @@ module Rack module_function :parse_query_without_ajax_body_cleanup def parse_query(qs, d = '&;') - qs = qs.dup + qs = qs.to_s.dup qs.chop! if qs[-1] == 0 qs.gsub!(/&_=$/, '') parse_query_without_ajax_body_cleanup(qs, d) |