aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorXinjiang Lu <xinjiang.lu@gmail.com>2014-06-11 00:11:27 -0700
committerXinjiang Lu <xinjiang.lu@gmail.com>2014-07-01 13:08:22 -0700
commitb39a344426fd1a471baf436612a6b38d317babd4 (patch)
tree7e7c15c53f6bb2569f6d8a8fea6211f82a3b04ee /actionpack/lib/action_controller
parentad778bc422b338a7ef4de613a5919667ce2196ba (diff)
downloadrails-b39a344426fd1a471baf436612a6b38d317babd4.tar.gz
rails-b39a344426fd1a471baf436612a6b38d317babd4.tar.bz2
rails-b39a344426fd1a471baf436612a6b38d317babd4.zip
Improve token_and_options regex and test
add a test case to test the regex for the helper method raw_params
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
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.