]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs...
authorSeth Michael Larson <seth@python.org>
Fri, 31 Jan 2025 17:41:34 +0000 (11:41 -0600)
committerGitHub <noreply@github.com>
Fri, 31 Jan 2025 17:41:34 +0000 (09:41 -0800)
commitd89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a
tree237e9cef122cc4cb9d69cf829e6803bbd9888a4d
parent54f74b80aef8b581f2b124d150903cec83aff005
gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (#129418)

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

* Use Sphinx references

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Add mismatched bracket test cases, fix news format

* Add more test coverage for ports

---------

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]