]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-143916: Reject control characters in wsgiref.headers.Headers
authorGregory P. Smith <68491+gpshead@users.noreply.github.com>
Tue, 20 Jan 2026 22:51:58 +0000 (14:51 -0800)
committerGitHub <noreply@github.com>
Tue, 20 Jan 2026 22:51:58 +0000 (22:51 +0000)
commite4846a93ac07a8ae9aa18203af0dd13d6e7a6995
tree8d64b065beb750256c11151b74825e0cc1b9a2df
parentcf039bc7a176859235bcda91bf2e48fe74f6f965
[3.11] gh-143916: Reject control characters in wsgiref.headers.Headers

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)
(cherry picked from commit 22e4d55285cee52bc4dbe061324e5f30bd4dee58)

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]