potential fix for invalid query string construction
This commit is contained in:
parent
8f637e6785
commit
0856d8d405
@ -110,7 +110,7 @@ module Webrat
|
|||||||
when :rack, :sinatra
|
when :rack, :sinatra
|
||||||
Rack::Utils.parse_nested_query(query_string)
|
Rack::Utils.parse_nested_query(query_string)
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user