diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-12-24 13:04:08 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-12-24 13:04:08 +0900 |
commit | e8cf06e1d4ebdd2162754fc287fd90d33051303e (patch) | |
tree | 853b39c7ffb967dd0b3d04fefbbc658270fa0e2c /actionpack | |
parent | c80fcce91ac8eb40d8d7a5b827c1507038fa644a (diff) | |
download | rails-e8cf06e1d4ebdd2162754fc287fd90d33051303e.tar.gz rails-e8cf06e1d4ebdd2162754fc287fd90d33051303e.tar.bz2 rails-e8cf06e1d4ebdd2162754fc287fd90d33051303e.zip |
"warning: ambiguous first argument; put parentheses or even spaces"
Diffstat (limited to 'actionpack')
-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. |