[glesys] fix URL encoding of API parameter values

This commit is contained in:
Tobias Nygren 2015-03-25 15:16:29 +01:00
parent e4547ad987
commit 14b4b7ed10
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ module Fog
end
def urlencode(hash)
hash.to_a.map! { |k, v| "#{k}=#{v.to_s}" }.join("&")
hash.to_a.map! { |k, v| "#{k}=#{CGI.escape(v.to_s)}" }.join("&")
end
end
end