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