-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-127794: Validate header name according to rfc-5322 #127820
base: main
Are you sure you want to change the base?
Conversation
srinivasreddy
commented
Dec 11, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: email.message.EmailMessage accepts invalid header field names without error, which raise an error when parsed #127794
…ly printable ascii characters
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be put in the comfy chair! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the prompt response. Hopefully I can be reasonably prompt in return, but unfortunately no guarantees :(
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final thoughts. Otherwise, it looks fine to me.
Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to post my review 3 days ago..
Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst
Outdated
Show resolved
Hide resolved
…wmRsp.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Great. The suggestion I proposed was meant to be checked with the online docs but RTD is currently failing for all other PRs. Have you tried rendering Can you check it locally & show me a screenshot comparing the two? Thanks in advance. |
Nevermind, we use the long form anyway. No need to change: $ git grep -P ':rfc:`.+ <\d{4}#section.+>' Doc/
Doc/howto/logging-cookbook.rst::rfc:`relevant section of the specification <5424#section-6>`.)
Doc/library/codecs.rst:based on the separator characters defined in :rfc:`section 3.1 of RFC 3490 <3490#section-3.1>`
Doc/library/http.client.rst: an absolute path to conform with :rfc:`RFC 2616 §5.1.2 <2616#section-5.1.2>`
Doc/library/http.client.rst: with the request. A :rfc:`Host header <2616#section-14.23>`
Doc/library/http.client.rst: must be provided to conform with :rfc:`RFC 2616 §5.1.2 <2616#section-5.1.2>`
Doc/library/uuid.rst: :rfc:`RFC 9562, §5.8 <9562#section-5.8>`.
Doc/library/xmlrpc.client.rst: :rfc:`RFC 2045 section 6.8 <2045#section-6.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once RTD is back online, we can merge this one I think.
@picnixz RTD passed as well. We can merge 🚀 🚀 |