diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-28 10:22:48 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-28 10:22:48 -0800 |
commit | afe6e059ea216f01d160e4603116356b78df12e5 (patch) | |
tree | e01ada46a3c3b6f2e2a67a8bf4234caf6ff1f995 /activesupport/lib/active_support/message_verifier.rb | |
parent | c8dcc19cf9e40c4387bfc197bc118da16c8469c3 (diff) | |
parent | a19d0f5a66f17c356c5255c5d5930a73a25f627a (diff) | |
download | rails-afe6e059ea216f01d160e4603116356b78df12e5.tar.gz rails-afe6e059ea216f01d160e4603116356b78df12e5.tar.bz2 rails-afe6e059ea216f01d160e4603116356b78df12e5.zip |
Merge pull request #4207 from nashby/deprecate-base64-encode64s
deprecate Base64.encode64s from AS
Diffstat (limited to 'activesupport/lib/active_support/message_verifier.rb')
-rw-r--r-- | activesupport/lib/active_support/message_verifier.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb index 30ac44f6fa..7cb5b1e82d 100644 --- a/activesupport/lib/active_support/message_verifier.rb +++ b/activesupport/lib/active_support/message_verifier.rb @@ -18,7 +18,7 @@ module ActiveSupport # self.current_user = User.find(id) # end # - # By default it uses Marshal to serialize the message. If you want to use another + # By default it uses Marshal to serialize the message. If you want to use another # serialization method, you can set the serializer attribute to something that responds # to dump and load, e.g.: # @@ -44,7 +44,7 @@ module ActiveSupport end def generate(value) - data = ActiveSupport::Base64.encode64s(@serializer.dump(value)) + data = ActiveSupport::Base64.strict_encode64(@serializer.dump(value)) "#{data}--#{generate_digest(data)}" end |