From 2862738f79cee77c8082c94894c4f4a5a47c3dcd Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 5 Dec 2022 15:15:13 -0800 Subject: [PATCH 1/2] gh-100001: Remove doc typo, add versionadded (GH-100042) (cherry picked from commit bed15f87eadc726122185cf41efcdda289f4a7b1) Co-authored-by: Gregory P. Smith gh-100001: Remove new doc typo, add versionadded. --- Doc/library/http.server.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index fd6d7cb4ee1c40..9cffd7a965ea4c 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -503,6 +503,8 @@ to be served. Earlier versions of Python did not scrub control characters from the log messages emitted to stderr from ``python -m http.server`` or the default :class:`BaseHTTPRequestHandler` ``.log_message`` -implementation. This could allow to remote clients connecting to your +implementation. This could allow remote clients connecting to your server to send nefarious control codes to your terminal. +.. versionadded:: 3.12 + Control characters are scrubbed in stderr logs. From 861362a8ca5f0ba3c31dc10323782a297059dd58 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 5 Dec 2022 15:16:51 -0800 Subject: [PATCH 2/2] 3.10.9 --- Doc/library/http.server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index 9cffd7a965ea4c..8bd22eac831af3 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -506,5 +506,5 @@ default :class:`BaseHTTPRequestHandler` ``.log_message`` implementation. This could allow remote clients connecting to your server to send nefarious control codes to your terminal. -.. versionadded:: 3.12 +.. versionadded:: 3.10.9 Control characters are scrubbed in stderr logs.