Skip to content

Commit

Permalink
Replace obsolete URI.unescape with CGI.unescape
Browse files Browse the repository at this point in the history
  • Loading branch information
sirwolfgang authored Sep 13, 2018
1 parent acbb03f commit 7d1f358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ namespace :organizations do
# don't have an explicit file extension in the filename
image = organization.logo_file_name
ext = File.extname(image)
image_original = URI.unescape(image.gsub(ext, "_original#{ext}"))
image_original = CGI.unescape(image.gsub(ext, "_original#{ext}"))

# this url pattern can be changed to reflect whatever service you use
logo_url = "https://s3.amazonaws.com/xxxxx/organizations/#{organization.id}/#{image_original}"
Expand Down

0 comments on commit 7d1f358

Please sign in to comment.