Skip to content

Commit

Permalink
change CGI esc to URI to prevent filename changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Rhodes authored and konstantin committed Jan 12, 2012
1 parent 2581b1b commit 78d63f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/s3/right_s3_interface.rb
Expand Up @@ -950,7 +950,7 @@ def get_link(bucket, key, expires=nil, headers={}, response_params={})
else
response_params = ''
end
generate_link('GET', headers.merge(:url=>"#{bucket}/#{CGI::escape key}#{response_params}"), expires)
generate_link('GET', headers.merge(:url=>"#{bucket}/#{URI::escape key}#{response_params}"), expires)
rescue
on_exception
end
Expand Down

0 comments on commit 78d63f5

Please sign in to comment.