File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
actionpack/lib/action_controller/metal Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -513,14 +513,11 @@ def rewrite_param_values(array_params)
513
513
array_params . each { |param | ( param [ 1 ] || +"" ) . gsub! %r/^"|"$/ , "" }
514
514
end
515
515
516
- WHITESPACED_AUTHN_PAIR_DELIMITERS = /\s *#{ AUTHN_PAIR_DELIMITERS } \s */
517
- private_constant :WHITESPACED_AUTHN_PAIR_DELIMITERS
518
-
519
516
# This method takes an authorization body and splits up the key-value pairs by
520
517
# the standardized `:`, `;`, or `\t` delimiters defined in
521
518
# `AUTHN_PAIR_DELIMITERS`.
522
519
def raw_params ( auth )
523
- _raw_params = auth . sub ( TOKEN_REGEX , "" ) . split ( WHITESPACED_AUTHN_PAIR_DELIMITERS )
520
+ _raw_params = auth . sub ( TOKEN_REGEX , "" ) . split ( AUTHN_PAIR_DELIMITERS ) . map ( & :strip )
524
521
_raw_params . reject! ( &:empty? )
525
522
526
523
if !_raw_params . first &.start_with? ( TOKEN_KEY )
You can’t perform that action at this time.
0 commit comments