s3_file_field 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/s3_file_field.js.coffee +1 -1
- data/lib/s3_file_field/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1834c25462f15aa5c21a5904f8471aff5bb2c93
|
4
|
+
data.tar.gz: cffa20e2e91396a0e915ea11ef2e64385c3bd091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc44c07e83ae84e8afab1d9a0fc6f9f2a3a2df11cc842effa83f07865b881b19b85ada36cef11add713b1045039f3baea6775838b90441266f5a9f08008045d
|
7
|
+
data.tar.gz: d123412ced919a5e30370b0841115ebaf4f6418a6d57e6ad79d680e542a377744af0bda0c20f1caef1f2a40a98bfcdb8bda4907a2d4c60f0b7f3b1e8bc45f1fd
|
@@ -96,7 +96,7 @@ jQuery.fn.S3FileField = (options) ->
|
|
96
96
|
content = {}
|
97
97
|
|
98
98
|
if result # Use the S3 response to set the URL to avoid character encodings bugs
|
99
|
-
content.url = $(result).find("Location").text()
|
99
|
+
content.url = $(result).find("Location").text().replace("%2F", "/").replace('http:', 'https:')
|
100
100
|
content.filepath = $('<a />').attr('href', content.url)[0].pathname
|
101
101
|
else # IE <= 9 returns null result so hack is necessary
|
102
102
|
domain = settings.url.replace(/\/+$/, '').replace(/^(https?:)?/, 'https:')
|