Skip to content

Commit 411edaf

Browse files
authored
Merge pull request rails#52695 from excid3/strip-encrypted-content-file
Strip encrypted file contents
2 parents 824b225 + f07a4f8 commit 411edaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/encrypted_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def key?
6969
# decrypted or verified.
7070
def read
7171
if !key.nil? && content_path.exist?
72-
decrypt content_path.binread
72+
decrypt content_path.binread.strip
7373
else
7474
raise MissingContentError, content_path
7575
end

0 commit comments

Comments
 (0)