Permalink
Browse files

change CGI esc to URI to prevent filename changes

  • Loading branch information...
1 parent 2581b1b commit 78d63f59c913546f371d5aa4eae1708267b25774 Benjamin Rhodes committed with konstantin-dzreev Dec 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/s3/right_s3_interface.rb
@@ -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

0 comments on commit 78d63f5

Please sign in to comment.