Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #8595 from amatsuda/regex_warning

"warning: ambiguous first argument; put parentheses or even spaces"
  • Loading branch information...
commit 0a752e88c2c484241d7fd0cd911b36c4b02a59d1 2 parents c80fcce + e8cf06e
@rafaelfranca rafaelfranca authored
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.