From 8a235c0c05efec1c8ee14c7454982dc2b8ca9464 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 21 Nov 2018 14:02:24 +0100 Subject: [PATCH] Do not append new line to Base64 encoded encrypted value --- lib/gitlab/crypto_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/crypto_helper.rb b/lib/gitlab/crypto_helper.rb index 68d0b5d8f8a..e85753c3a12 100644 --- a/lib/gitlab/crypto_helper.rb +++ b/lib/gitlab/crypto_helper.rb @@ -17,7 +17,7 @@ module Gitlab def aes256_gcm_encrypt(value) encrypted_token = Encryptor.encrypt(AES256_GCM_OPTIONS.merge(value: value)) - Base64.encode64(encrypted_token) + Base64.strict_encode64(encrypted_token) end def aes256_gcm_decrypt(value)