diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-12-05 22:47:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 22:47:57 (GMT) |
commit | aae7b43ca3d2bb2028370b8252ccb51006827429 (patch) | |
tree | 355ac536a596ce3f4e6a46b03b1f86ea4b7e441d /Misc/NEWS.d | |
parent | ec8c06bc28b29b62d31b953e54f1d8d8535faa80 (diff) | |
download | cpython-aae7b43ca3d2bb2028370b8252ccb51006827429.zip cpython-aae7b43ca3d2bb2028370b8252ccb51006827429.tar.gz cpython-aae7b43ca3d2bb2028370b8252ccb51006827429.tar.bz2 |
gh-100001: Also escape \s in http.server log messages. (GH-100038)
Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so
that it is technically possible to parse the line and reconstruct what the
original data was. Without this a \xHH is ambiguious as to if it is a hex
replacement we put in or the characters r"\x" came through in the original
request line.
(cherry picked from commit 7e29398407dbd53b714702abb89aa2fd7baca48a)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-12-05-13-40-15.gh-issue-100001.78ReYp.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-12-05-13-40-15.gh-issue-100001.78ReYp.rst b/Misc/NEWS.d/next/Library/2022-12-05-13-40-15.gh-issue-100001.78ReYp.rst new file mode 100644 index 0000000..e305352 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-12-05-13-40-15.gh-issue-100001.78ReYp.rst @@ -0,0 +1,5 @@ +Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so +that it is technically possible to parse the line and reconstruct what the +original data was. Without this a \xHH is ambiguious as to if it is a hex +replacement we put in or the characters r"\x" came through in the original +request line. |