← 返回首页
[3.11] gh-100001: Also escape \s in http.server log messages. (GH-100038) by miss-islington · Pull Request #100040 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[3.11] gh-100001: Also escape \s in http.server log messages. (GH-100038)#100040

Merged
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-7e29398-3.11
Dec 5, 2022
Merged

[3.11] gh-100001: Also escape \s in http.server log messages. (GH-100038)#100040
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-7e29398-3.11

Conversation

Copy link
Copy Markdown
Contributor

miss-islington commented Dec 5, 2022
edited by bedevere-bot
Loading

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 7e29398)

Co-authored-by: Gregory P. Smith greg@krypto.org

…H-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 7e29398) Co-authored-by: Gregory P. Smith <greg@krypto.org>
miss-islington merged commit b2ff0f7 into python:3.11 Dec 5, 2022
miss-islington deleted the backport-7e29398-3.11 branch December 5, 2022 22:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Footer

© 2026 GitHub, Inc.