diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-23 20:07:20 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-23 20:07:20 -0800 |
commit | 0a752e88c2c484241d7fd0cd911b36c4b02a59d1 (patch) | |
tree | 853b39c7ffb967dd0b3d04fefbbc658270fa0e2c /actionpack/lib | |
parent | c80fcce91ac8eb40d8d7a5b827c1507038fa644a (diff) | |
parent | e8cf06e1d4ebdd2162754fc287fd90d33051303e (diff) | |
download | rails-0a752e88c2c484241d7fd0cd911b36c4b02a59d1.tar.gz rails-0a752e88c2c484241d7fd0cd911b36c4b02a59d1.tar.bz2 rails-0a752e88c2c484241d7fd0cd911b36c4b02a59d1.zip |
Merge pull request #8595 from amatsuda/regex_warning
"warning: ambiguous first argument; put parentheses or even spaces"
Diffstat (limited to 'actionpack/lib')
-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 f50394837b..896238b7dc 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -458,7 +458,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. |