Permalink
Browse files

Merge pull request #8595 from amatsuda/regex_warning

"warning: ambiguous first argument; put parentheses or even spaces"
  • Loading branch information...
2 parents c80fcce + e8cf06e commit 0a752e88c2c484241d7fd0cd911b36c4b02a59d1 @rafaelfranca rafaelfranca committed Dec 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/http_authentication.rb
@@ -458,7 +458,7 @@ def rewrite_param_values(array_params)
# 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.

0 comments on commit 0a752e8

Please sign in to comment.