]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100001: Omit control characters in http.server stderr logs. (#100002)
authorGregory P. Smith <greg@krypto.org>
Mon, 5 Dec 2022 20:55:45 +0000 (12:55 -0800)
committerGitHub <noreply@github.com>
Mon, 5 Dec 2022 20:55:45 +0000 (12:55 -0800)
commitd8ab0a4dfa48f881b4ac9ab857d2e9de42f72828
tree5b4a9e65b34457adff349c81b34fba674414bf92
parent530cc9dbb61df55b83f0219d2282980c9cb1cbd8
gh-100001: Omit control characters in http.server stderr logs. (#100002)

Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
Doc/library/http.server.rst
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Security/2022-12-05-01-39-10.gh-issue-100001.uD05Fc.rst [new file with mode: 0644]