appoxy-aws 1.11.32 → 1.11.34
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/awsbase/right_awsbase.rb +1 -1
- metadata +1 -1
@@ -41,7 +41,7 @@ module RightAws
|
|
41
41
|
# Escape a string accordingly Amazon rulles
|
42
42
|
# http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/index.html?REST_RESTAuth.html
|
43
43
|
def self.amz_escape(param)
|
44
|
-
return CGI.escape(param).gsub("%7E", "~").gsub("+", "%20") # from: http://umlaut.rubyforge.org/svn/trunk/lib/aws_product_sign.rb
|
44
|
+
return CGI.escape(param.to_s).gsub("%7E", "~").gsub("+", "%20") # from: http://umlaut.rubyforge.org/svn/trunk/lib/aws_product_sign.rb
|
45
45
|
#param.to_s.gsub(/([^a-zA-Z0-9._~-]+)/n) do
|
46
46
|
# '%' + $1.unpack('H2' * $1.size).join('%').upcase
|
47
47
|
#end
|