Merge pull request #8595 from amatsuda/regex_warning

"warning: ambiguous first argument; put parentheses or even spaces"
This commit is contained in:
Rafael Mendonça França 2012-12-23 20:07:20 -08:00
commit 0a752e88c2
1 changed files with 1 additions and 1 deletions

View File

@ -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.