potential fix for invalid query string construction

This commit is contained in:
John Bintz 2010-06-01 14:10:39 -04:00
parent 8f637e6785
commit 0856d8d405
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ module Webrat
when :rack, :sinatra
Rack::Utils.parse_nested_query(query_string)
else
query_string.split('&').map {|query| { query.split('=').first => query.split('=').last }}
Hash[query_string.split('&').map {|query| [ query.split('=').first, query.split('=').last ]}]
end
end