Skip to content

Commit

Permalink
URL-escape resource filenames in stacks urls
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Mar 12, 2018
1 parent 31653e4 commit afebcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/embed/stacks_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def stacks_image_url(druid, file_name)
private

def normalized_stacks_image_file_name(file_name)
file_name.gsub(/\.\w+$/, '')
ERB::Util.url_encode(file_name.gsub(/\.\w+$/, ''))
end
end
end

0 comments on commit afebcc4

Please sign in to comment.