From 5f205073d2ded61348e9ea251542a5f133211f13 Mon Sep 17 00:00:00 2001 From: Matt Larraz Date: Sun, 22 Aug 2021 12:11:23 -0400 Subject: [PATCH] [rubygems/rubygems] Pass second argument to Array#split to ensure only two values returned https://github.com/rubygems/rubygems/commit/601b5553bb --- lib/bundler/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]"