]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Feb 2025 08:12:51 +0000 (09:12 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Feb 2025 08:12:51 +0000 (00:12 -0800)
commit90e526ae67b172ed7c6c56e7edad36263b0f9403
treed401db363bae034dde1ff093a0ea63eb627b6464
parent1459d08b56c6c7135ac904074c4a4225b2d44cbd
[3.13] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418) (GH-129526)

gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418)

* gh-105704: Disallow square brackets ( and ) in domain names for parsed URLs

* Use Sphinx references

* Add mismatched bracket test cases, fix news format

* Add more test coverage for ports

---------

(cherry picked from commit d89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Security/2025-01-28-14-08-03.gh-issue-105704.EnhHxu.rst [new file with mode: 0644]