Skip to content

Commit 43f2e3a

Browse files
committed
Fix compatibility with older Rubies.
1 parent 6a060b8 commit 43f2e3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/spec_session_encryptor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def encryptor_class
211211

212212
# slice 1 byte for version, 32 bytes for cipher_secret, 12 bytes for IV,
213213
# 16 bytes for the auth tag from the start of the string
214-
encrypted_payload = decoded_message[(1 + 32 + 12 + 16)..]
214+
encrypted_payload = decoded_message[(1 + 32 + 12 + 16)..decoded_message.size]
215215

216216
(encrypted_payload.bytesize % 24).must_equal 0
217217
end

0 commit comments

Comments
 (0)