diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-27 22:46:44 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-27 22:46:44 +0300 |
commit | a19d0f5a66f17c356c5255c5d5930a73a25f627a (patch) | |
tree | 63d535e08e31774c417e960ab306431c144c0fb7 /actionpack/lib | |
parent | 1a7701522d2308df801ba1f375cb0626386928a5 (diff) | |
download | rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.gz rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.bz2 rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.zip |
deprecate Base64.encode64s from AS. Use Base64.strict_encode64 instead
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index 56335a22cb..594ba7a7b8 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -145,7 +145,7 @@ module ActionController end def encode_credentials(user_name, password) - "Basic #{ActiveSupport::Base64.encode64s("#{user_name}:#{password}")}" + "Basic #{ActiveSupport::Base64.strict_encode64("#{user_name}:#{password}")}" end def authentication_request(controller, realm) @@ -289,7 +289,7 @@ module ActionController t = time.to_i hashed = [t, secret_key] digest = ::Digest::MD5.hexdigest(hashed.join(":")) - ActiveSupport::Base64.encode64("#{t}:#{digest}").gsub("\n", '') + ActiveSupport::Base64.strict_encode64("#{t}:#{digest}") end # Might want a shorter timeout depending on whether the request |