Compare commits

...

8 Commits

Author SHA1 Message Date
Roberto Polli e834e03c83
Merge 7222bb2a10 into a15dd75d98 2023-11-30 09:58:42 +02:00
Tzu-ping Chung a15dd75d98
Merge pull request #12417 from xqm32/fix-outdated-pip-install 2023-11-28 16:08:29 +09:00
Tzu-ping Chung d8ab6dc6c1 Clarify news fragment 2023-11-28 15:06:25 +08:00
Qiming Xu fe10d368f6
Add end line 2023-11-28 14:25:56 +08:00
Qiming Xu 28250baffb
Fix line wrap length and add news entry 2023-11-28 14:17:51 +08:00
Qiming Xu 88ac529219
Fix outdated pip install argument description 2023-11-28 13:15:31 +08:00
Roberto Polli 7222bb2a10
Create 9973.bugfix.rst 2021-05-12 11:15:12 +02:00
Roberto Polli 0872b5193a
Don't disclose empty passwords.
Empty passwords can be associated with access tokens.
Avoid disclosing them.
2021-05-12 11:02:38 +02:00
4 changed files with 6 additions and 3 deletions

View File

@ -45,8 +45,8 @@ When looking at the items to be installed, pip checks what type of item
each is, in the following order:
1. Project or archive URL.
2. Local directory (which must contain a ``setup.py``, or pip will report
an error).
2. Local directory (which must contain a ``pyproject.toml`` or ``setup.py``,
otherwise pip will report an error).
3. Local file (a sdist or wheel format archive, following the naming
conventions for those formats).
4. A requirement, as specified in :pep:`440`.

1
news/12417.doc.rst Normal file
View File

@ -0,0 +1 @@
Fix outdated pip install argument description in documentation.

1
news/9973.bugfix.rst Normal file
View File

@ -0,0 +1 @@
Mask the user when the password is empty.

View File

@ -507,12 +507,13 @@ def redact_netloc(netloc: str) -> str:
For example:
- "user:pass@example.com" returns "user:****@example.com"
- "user:@example.com" returns "****@example.com"
- "accesstoken@example.com" returns "****@example.com"
"""
netloc, (user, password) = split_auth_from_netloc(netloc)
if user is None:
return netloc
if password is None:
if not password:
user = "****"
password = ""
else: