aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/message_encryptor.rb
diff options
context:
space:
mode:
authorVasiliy Ermolovich <younash@gmail.com>2011-12-27 22:46:44 +0300
committerVasiliy Ermolovich <younash@gmail.com>2011-12-27 22:46:44 +0300
commita19d0f5a66f17c356c5255c5d5930a73a25f627a (patch)
tree63d535e08e31774c417e960ab306431c144c0fb7 /activesupport/lib/active_support/message_encryptor.rb
parent1a7701522d2308df801ba1f375cb0626386928a5 (diff)
downloadrails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.gz
rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.bz2
rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.zip
deprecate Base64.encode64s from AS. Use Base64.strict_encode64 instead
Diffstat (limited to 'activesupport/lib/active_support/message_encryptor.rb')
-rw-r--r--activesupport/lib/active_support/message_encryptor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/message_encryptor.rb b/activesupport/lib/active_support/message_encryptor.rb
index 7d8a7fb687..476ba0b3d1 100644
--- a/activesupport/lib/active_support/message_encryptor.rb
+++ b/activesupport/lib/active_support/message_encryptor.rb
@@ -56,7 +56,7 @@ module ActiveSupport
encrypted_data = cipher.update(@serializer.dump(value))
encrypted_data << cipher.final
- [encrypted_data, iv].map {|v| ActiveSupport::Base64.encode64s(v)}.join("--")
+ [encrypted_data, iv].map {|v| ActiveSupport::Base64.strict_encode64(v)}.join("--")
end
def _decrypt(encrypted_message)