1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Escape the path for signatures

This commit is contained in:
croaker 2011-01-27 05:16:21 +08:00 committed by Wesley Beary
parent 5b2aaef25e
commit 4b1e581652

View file

@ -343,7 +343,7 @@ DATA
unless subdomain.nil? || subdomain == @host
canonical_resource << "#{CGI.escape(subdomain).downcase}/"
end
canonical_resource << params[:path].to_s
canonical_resource << CGI.escape(params[:path].to_s).gsub('%2F', '/')
canonical_resource << '?'
for key in (params[:query] || {}).keys
if %w{acl location logging notification partNumber policy requestPayment torrent uploadId uploads versionId versioning versions}.include?(key)