]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:30:28 +0000 (09:30 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Feb 2025 08:30:28 +0000 (08:30 +0000)
commita7084f6075c9595ba60119ce8c62f1496f50c568
treeec05394cb310e2374969398508aafbc256f3d22c
parent368ba55819cc44d7fe6c364845dbd3725e2f70d4
[3.12] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418) (GH-129527)

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]