Skip to content

Commit

Permalink
Proper S3 hostnames, which allow for crossdomain scripting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ienders committed Jul 31, 2009
1 parent fd04b4d commit 2c6bb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/technoweenie/attachment_fu/backends/s3_backend.rb
Expand Up @@ -273,7 +273,7 @@ def full_filename(thumbnail = nil)
#
# The optional thumbnail argument will output the thumbnail's filename (if any).
def s3_url(thumbnail = nil)
File.join(s3_protocol + s3_hostname + s3_port_string, bucket_name, full_filename(thumbnail))
File.join(s3_protocol + bucket_name + '.' + s3_hostname + s3_port_string, full_filename(thumbnail))
end

# All public objects are accessible via a GET request to CloudFront. You can generate a
Expand Down

0 comments on commit 2c6bb3b

Please sign in to comment.