diff options
author | Matt Larraz <mlarraz@users.noreply.github.com> | 2021-08-22 12:11:23 -0400 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 5f205073d2ded61348e9ea251542a5f133211f13 (patch) | |
tree | 7f8fee3921e4871837934ed6a2abe136d2de8846 /lib/bundler/settings.rb | |
parent | c119dd2b5a0466ba317c2b5981c686355d7e3b6e (diff) |
[rubygems/rubygems] Pass second argument to Array#split to ensure only two values returned
https://github.com/rubygems/rubygems/commit/601b5553bb
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 450f57e3d3..1ced590b6f 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -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]" |