Skip to content

Commit

Permalink
Sprockets uses strict_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesr committed Jun 5, 2017
1 parent 39065f0 commit e2f8b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/image_encode_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def base64_encoded_uri(source)
data = ERB::Util.url_encode(asset.source).gsub('+', '%20')
else
encoding = 'base64'
data = Base64.encode64(asset.source)
data = Base64.strict_encode64(asset.source)
end

"data:#{asset.content_type};#{encoding},#{data}"
Expand Down

0 comments on commit e2f8b41

Please sign in to comment.