Skip to content

Commit

Permalink
Percent-encode the username in redact_netloc().
Browse files Browse the repository at this point in the history
  • Loading branch information
cjerdonek committed Oct 30, 2018
1 parent 0ecc9f0 commit 0aa301c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def redact_netloc(netloc):
if user is None:
return netloc
password = '' if password is None else ':****'
return '{user}{password}@{netloc}'.format(user=user,
return '{user}{password}@{netloc}'.format(user=urllib_parse.quote(user),
password=password,
netloc=netloc)

Expand Down

0 comments on commit 0aa301c

Please sign in to comment.