From 3322814b3c667d07a86e20cad18eabfaf2204438 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 14 Sep 2023 13:00:39 -0700 Subject: [PATCH] Don't remove padding when encoding base64 in column_encryption plugin --- lib/sequel/plugins/column_encryption.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sequel/plugins/column_encryption.rb b/lib/sequel/plugins/column_encryption.rb index c4a065b51..70dae794f 100644 --- a/lib/sequel/plugins/column_encryption.rb +++ b/lib/sequel/plugins/column_encryption.rb @@ -485,7 +485,6 @@ def decode64(str) def urlsafe_encode64(bin) str = [bin].pack("m0") - str.chomp!("=") unless str.chomp!("==") str.tr!("+/", "-_") str end