diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-03-12 13:17:57 -0600 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-03-12 13:17:57 -0600 |
commit | 0c92a51dadc48fc64c7c35606c5616d2f40be107 (patch) | |
tree | ee844d400a82bb8c357fdf66991068914af4ac86 /actionpack/lib/action_dispatch | |
parent | f8088d7def4bf413533d85a1565be58231c3d23e (diff) | |
download | rails-0c92a51dadc48fc64c7c35606c5616d2f40be107.tar.gz rails-0c92a51dadc48fc64c7c35606c5616d2f40be107.tar.bz2 rails-0c92a51dadc48fc64c7c35606c5616d2f40be107.zip |
Handle nil QS
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) |