1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #32708 from bdewater/base64-screenshot

Use strict_encode64 instead of gsub newline for ScreenshotHelper
This commit is contained in:
Andrew White 2018-04-24 05:09:29 +01:00 committed by GitHub
commit a3ecf4ff1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ module ActionDispatch
end end
def inline_base64(path) def inline_base64(path)
Base64.encode64(path).gsub("\n", "") Base64.strict_encode64(path)
end end
def failed? def failed?