1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Pass second argument to Array#split to ensure only two values returned

https://github.com/rubygems/rubygems/commit/601b5553bb
This commit is contained in:
Matt Larraz 2021-08-22 12:11:23 -04:00 committed by Hiroshi SHIBATA
parent c119dd2b5a
commit 5f205073d2
Notes: git 2021-08-31 19:06:59 +09:00

View file

@ -419,7 +419,7 @@ module Bundler
elsif is_credential(key)
"[REDACTED]"
elsif is_userinfo(converted)
username, pass = converted.split(":")
username, pass = converted.split(":", 2)
if pass == "x-oauth-basic"
username = "[REDACTED]"