Skip to content

Commit

Permalink
Escape ' characters in path
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaion committed Oct 9, 2012
1 parent c1d8a84 commit cc27c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aws/s3/connection.rb
Expand Up @@ -8,7 +8,7 @@ def connect(options = {})

def prepare_path(path)
path = path.remove_extended unless path.valid_utf8?
URI.escape(path).gsub('%253F', '%3F')
URI.escape(path).gsub('%253F', '%3F').gsub('\'', '%27')
end
end
attr_reader :access_key_id, :secret_access_key, :http, :options
Expand Down

0 comments on commit cc27c2f

Please sign in to comment.