diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-04 14:02:21 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-04 14:02:21 -0300 |
commit | 2fd8dd7feb27908d29ec57f8c5826bb95c3bd899 (patch) | |
tree | 0317aa1792cdbae1a8a9473423d17b5be4a02655 /actionpack/lib/action_controller/metal | |
parent | 42de6200eb48f93fc6504003b4693703b6b3a825 (diff) | |
parent | b39a344426fd1a471baf436612a6b38d317babd4 (diff) | |
download | rails-2fd8dd7feb27908d29ec57f8c5826bb95c3bd899.tar.gz rails-2fd8dd7feb27908d29ec57f8c5826bb95c3bd899.tar.bz2 rails-2fd8dd7feb27908d29ec57f8c5826bb95c3bd899.zip |
Merge pull request #16011 from xjlu/token_and_options
Improve token_and_options regex and test
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-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 5b52c19802..25c123edf7 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -471,7 +471,7 @@ module ActionController # pairs by the standardized `:`, `;`, or `\t` delimiters defined in # `AUTHN_PAIR_DELIMITERS`. def raw_params(auth) - auth.sub(TOKEN_REGEX, '').split(/"\s*#{AUTHN_PAIR_DELIMITERS}\s*/) + auth.sub(TOKEN_REGEX, '').split(/\s*#{AUTHN_PAIR_DELIMITERS}\s*/) end # Encodes the given token and options into an Authorization header value. |