Skip to content

[3.14] gh-143921: Reject NUL, CR and LF in IMAP commands (GH-143922, GH-153067)#153137

Open
serhiy-storchaka wants to merge 1 commit into
python:3.14from
serhiy-storchaka:backport-ctl-chars-3.14
Open

[3.14] gh-143921: Reject NUL, CR and LF in IMAP commands (GH-143922, GH-153067)#153137
serhiy-storchaka wants to merge 1 commit into
python:3.14from
serhiy-storchaka:backport-ctl-chars-3.14

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Combined backport of GH-143922, which rejected all control characters, and GH-153067, which narrowed the check to NUL, CR and LF. Other control characters are valid in quoted strings and are sent quoted (GH-152703, already backported).

(cherry picked from commit 6262704)
(cherry picked from commit d0921ef)

…nGH-143922, pythonGH-153067)

Combined backport of pythonGH-143922, which rejected all control characters,
and pythonGH-153067, which narrowed the check to NUL, CR and LF.  Other
control characters are valid in quoted strings and are sent quoted.

(cherry picked from commit 6262704)
(cherry picked from commit d0921ef)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant