mirror of https://github.com/rails/rails
Merge pull request #8595 from amatsuda/regex_warning
"warning: ambiguous first argument; put parentheses or even spaces"
This commit is contained in:
commit
0a752e88c2
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue