Skip to content
Browse files

More CGI.escaping via @canavese

  • Loading branch information...
1 parent 9cd9422 commit 917a8965441bfa224325b78788ccbb624a497976 @treeder treeder committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mini_fb.rb
View
2 lib/mini_fb.rb
@@ -637,7 +637,7 @@ def self.fetch(url, options={})
resp = RestClient.post url, options[:params]
else
if options[:params] && options[:params].size > 0
- url += '?' + options[:params].map { |k, v| URI.escape("%s=%s" % [k, v]) }.join('&')
+ url += '?' + options[:params].map { |k, v| CGI.escape(k.to_s) + '=' + CGI.escape(v.to_s) }.join('&')
end
@@log.debug 'url_get=' + url if @@logging
resp = RestClient.get url

0 comments on commit 917a896

Please sign in to comment.
Something went wrong with that request. Please try again.