We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25dab88 commit af33170Copy full SHA for af33170
providers/default.rb
@@ -8,8 +8,8 @@
8
client = S3FileLib::client
9
download = true
10
11
- # handle key specified without leading slash
12
- remote_path = ::File.join('', new_resource.remote_path)
+ # handle key specified without leading slash, and support URL encoding when necessary.
+ remote_path = ::File.join('', new_resource.remote_path).split('/').map{|x| CGI.escape(x)}.join('/')
13
14
# we need credentials to be mutable
15
aws_access_key_id = new_resource.aws_access_key_id
0 commit comments