From e2f8b41dad1dffc9947018a7d691f403182cb630 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Thu, 1 Jun 2017 17:20:04 -0400 Subject: [PATCH] Sprockets uses strict_encode --- app/helpers/image_encode_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/image_encode_helper.rb b/app/helpers/image_encode_helper.rb index e37cb6a29063..a83fa73e8c8e 100644 --- a/app/helpers/image_encode_helper.rb +++ b/app/helpers/image_encode_helper.rb @@ -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}"