]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143916: Reject control characters in wsgiref.headers.Headers (GH-143917...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Jan 2026 18:11:52 +0000 (19:11 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Jan 2026 18:11:52 +0000 (18:11 +0000)
commit23e3c0ae867cca0130e441e776c9955b9027c510
tree187e67440afb688d51c4b70abd866e2e196ba361
parente4c596dab8038f332227aa68a72dbc0ee3c68205
[3.14] gh-143916: Reject control characters in wsgiref.headers.Headers  (GH-143917) (#143972)

gh-143916: Reject control characters in wsgiref.headers.Headers  (GH-143917)

* Add 'test.support' fixture for C0 control characters
* gh-143916: Reject control characters in wsgiref.headers.Headers
(cherry picked from commit f7fceed79ca1bceae8dbe5ba5bc8928564da7211)

Co-authored-by: Seth Michael Larson <seth@python.org>
Lib/test/support/__init__.py
Lib/test/test_wsgiref.py
Lib/wsgiref/headers.py
Misc/NEWS.d/next/Security/2026-01-16-11-07-36.gh-issue-143916.dpWeOD.rst [new file with mode: 0644]