Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
cyrillic filename bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dilshod committed May 26, 2015
1 parent 329aeeb commit fc5dfd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/storage/dropbox/public_url_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def file_url(style)
url = URI.parse("https://dl.dropboxusercontent.com/u/#{user_id}/")
path = @attachment.path(style)
path = path.match(/^Public\//).try(:post_match)
url.merge!(path)
url.merge!(URI.encode(path))
url.to_s
end
end
Expand Down

0 comments on commit fc5dfd9

Please sign in to comment.