mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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 7e29398407)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
This commit is contained in:
parent
ec8c06bc28
commit
aae7b43ca3
3 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue