Skip to content

Commit c8a8b47

Browse files
authored
Ensure splitting on first colon for basic.auth.user.info parsing (confluentinc#1822)
1 parent fd78ffe commit c8a8b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/confluent_kafka/schema_registry/schema_registry_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __init__(self, conf):
105105
" remove basic.auth.user.info from the"
106106
" configuration")
107107

108-
userinfo = tuple(conf_copy.pop('basic.auth.user.info', '').split(':'))
108+
userinfo = tuple(conf_copy.pop('basic.auth.user.info', '').split(':', 1))
109109

110110
if len(userinfo) != 2:
111111
raise ValueError("basic.auth.user.info must be in the form"

0 commit comments

Comments
 (0)