forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-105704: Disallow square brackets ( and ) in domain names for…
… parsed URLs
- Loading branch information
1 parent
d23f570
commit 6204ab9
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Security/2025-01-28-14-08-03.gh-issue-105704.EnhHxu.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
When using ``urllib.parse.urlsplit()`` and ``urlparse()`` host parsing would | ||
not reject domain names containing square brackets (``[`` and ``]``). Square | ||
brackets are only valid for IPv6 and IPvFuture hosts according to `RFC 3986 | ||
Section 3.2.2 <https://www.rfc-editor.org/rfc/rfc3986#section-3.2.2>`__. |