diff options
author | Jan Schwenzien <jan@schwenzien.info> | 2009-08-09 01:24:26 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-08-09 01:28:43 +0100 |
commit | 1f6afe4a74bb815a33f41b2d75acd530de6e2eba (patch) | |
tree | 6d107e839215f3875b376d78b3720aa83182b4aa /actionpack/lib/action_controller | |
parent | 618771beb57e623e05f70fd31f3bdb0c04318017 (diff) | |
download | rails-1f6afe4a74bb815a33f41b2d75acd530de6e2eba.tar.gz rails-1f6afe4a74bb815a33f41b2d75acd530de6e2eba.tar.bz2 rails-1f6afe4a74bb815a33f41b2d75acd530de6e2eba.zip |
Fix HTTP basic authentication for long credentials [#2572 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index 525787bf92..5ebe1ee048 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -141,7 +141,7 @@ module ActionController end def decode_credentials(request) - ActiveSupport::Base64.decode64(authorization(request).split.last || '') + ActiveSupport::Base64.decode64(authorization(request).split(' ', 2).last || '') end def encode_credentials(user_name, password) |