Permalink
Browse files

fixed #2

  • Loading branch information...
Bonias committed Jan 4, 2013
1 parent 400c04f commit 7bfe0cf37357a817770b95a42ef948f8064f61b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/citrus_mail/client.rb
@@ -1,5 +1,6 @@
require 'net/http'
require 'net/https'
+require 'cgi'
module CitrusMail
class Client
@@ -68,9 +69,8 @@ def flatten_params(params)
end
end
- #copied from ''net/http'
def urlencode(str)
- str.gsub(/[^a-zA-Z0-9_\.\-]/n) { |s| sprintf('%%%02x', s[0]) }
+ CGI.escape(str).gsub('+', '%20')
end
end

0 comments on commit 7bfe0cf

Please sign in to comment.