René's URL Explorer Experiment


Title: gh-56698: Fix base64-url parsing errors in email headers by matthieucan · Pull Request #136830 · python/cpython · GitHub

Open Graph Title: gh-56698: Fix base64-url parsing errors in email headers by matthieucan · Pull Request #136830 · python/cpython

X Title: gh-56698: Fix base64-url parsing errors in email headers by matthieucan · Pull Request #136830 · python/cpython

Description: Accept urlsafe base64 in email headers, as those are sometimes created by email clients. Issue: email.errors.HeaderParseError if base64url is used #56698

Open Graph Description: Accept urlsafe base64 in email headers, as those are sometimes created by email clients. Issue: email.errors.HeaderParseError if base64url is used #56698

X Description: Accept urlsafe base64 in email headers, as those are sometimes created by email clients. Issue: email.errors.HeaderParseError if base64url is used #56698

Opengraph URL: https://github.com/python/cpython/pull/136830

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:626e65d0-0ec7-96a7-538b-79341ed9e018
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA760:323DD4:1589724:1DAD984:696AA676
html-safe-nonce9c028e02e266b131fbbea004367b983c71015231ae141e6c1de4e4ffc03a87a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzYwOjMyM0RENDoxNTg5NzI0OjFEQUQ5ODQ6Njk2QUE2NzYiLCJ2aXNpdG9yX2lkIjoiNTg0OTM3OTQ5NzY0MjIwNjgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8afd2d3aca86acac20cddf16934829e1ea181731a71f2db66528e15656e36ca7
hovercard-subject-tagpull_request:2679092350
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/136830/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1b5fb32ad50bff17a3e504cddd019d91116557557c63d38cd972d1ab76ef29d0/python/cpython/pull/136830
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b5fb32ad50bff17a3e504cddd019d91116557557c63d38cd972d1ab76ef29d0/python/cpython/pull/136830
og:image:altAccept urlsafe base64 in email headers, as those are sometimes created by email clients. Issue: email.errors.HeaderParseError if base64url is used #56698
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamematthieucan
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/136830#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136830
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136830
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/136830
Reloadhttps://github.com/python/cpython/pull/136830
Reloadhttps://github.com/python/cpython/pull/136830
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/136830
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/136830
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/136830#issue-comment-box
matthieucanhttps://github.com/matthieucan
python:mainhttps://github.com/python/cpython/tree/main
matthieucan:fix-issue-56698https://github.com/matthieucan/cpython/tree/fix-issue-56698
gh-56698: Fix base64-url parsing errors in email headers https://github.com/python/cpython/pull/136830#top
matthieucanhttps://github.com/matthieucan
python:mainhttps://github.com/python/cpython/tree/main
matthieucan:fix-issue-56698https://github.com/matthieucan/cpython/tree/fix-issue-56698
Conversation 10 https://github.com/python/cpython/pull/136830
Commits 4 https://github.com/python/cpython/pull/136830/commits
Checks 39 https://github.com/python/cpython/pull/136830/checks
Files changed 5 https://github.com/python/cpython/pull/136830/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 19, 2025https://github.com/python/cpython/pull/136830#issue-3245363112
Please reload this pagehttps://github.com/python/cpython/pull/136830
email.errors.HeaderParseError if base64url is used #56698https://github.com/python/cpython/issues/56698
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/matthieucan
Fix base64-url parsing errors in email headershttps://github.com/python/cpython/pull/136830/commits/7706b33e18b277b8bf45c5c4484133bb6ca2a086
7706b33https://github.com/python/cpython/pull/136830/commits/7706b33e18b277b8bf45c5c4484133bb6ca2a086
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
code ownerhttps://github.com/python/cpython/blob/6293d8a1a648a498b7ac899631b74fa25c71c1ac/.github/CODEOWNERS#L168
July 19, 2025 14:57https://github.com/python/cpython/pull/136830#event-18711754014
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jul 19, 2025https://github.com/python/cpython/pull/136830#event-18711754164
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 19, 2025 https://github.com/python/cpython/pull/136830#ref-issue-1198870939
email.errors.HeaderParseError if base64url is used #56698 https://github.com/python/cpython/issues/56698
matthieucanhttps://github.com/matthieucan
July 19, 2025 16:59https://github.com/python/cpython/pull/136830#commits-pushed-b79dce6
https://github.com/matthieucan
Add news entryhttps://github.com/python/cpython/pull/136830/commits/b79dce66038179af62b640af6dfb416727c69626
b79dce6https://github.com/python/cpython/pull/136830/commits/b79dce66038179af62b640af6dfb416727c69626
https://github.com/matthieucan
Add tests for mixed base64 alphabetshttps://github.com/python/cpython/pull/136830/commits/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87
81cff0ahttps://github.com/python/cpython/pull/136830/commits/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 19, 2025 https://github.com/python/cpython/pull/136830#pullrequestreview-3035409421
View reviewed changes https://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87
encukouhttps://github.com/encukou
https://github.com/python/cpython/pull/136830#pullrequestreview-3035409421
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@bitdancerhttps://github.com/bitdancer
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jul 19, 2025https://github.com/python/cpython/pull/136830#event-18711916259
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jul 20, 2025https://github.com/python/cpython/pull/136830#issuecomment-3094640669
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 20, 2025https://github.com/python/cpython/pull/136830#issuecomment-3094672522
https://www.rfc-editor.org/rfc/rfc2047.html#section-4.1https://www.rfc-editor.org/rfc/rfc2047.html#section-4.1
https://www.rfc-editor.org/rfc/rfc2045#section-6.8https://www.rfc-editor.org/rfc/rfc2045#section-6.8
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jul 20, 2025 https://github.com/python/cpython/pull/136830#pullrequestreview-3036111654
View reviewed changes https://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87
picnixzhttps://github.com/picnixz
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/python/cpython/pull/136830#pullrequestreview-3036111654
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136830
Lib/test/test_email/test__encoded_words.pyhttps://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87#diff-1d7bc41dda41d4c1f15ca71a4aa670385badb364ef28f64a6ec0d5080841d6ef
Please reload this pagehttps://github.com/python/cpython/pull/136830
Lib/test/test_email/test_email.pyhttps://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87#diff-c145f46304ff3106c4dfb8e0d836ad084081f55b9fcaada70796ba5f1ff8cee0
Please reload this pagehttps://github.com/python/cpython/pull/136830
Lib/test/test_email/test__encoded_words.pyhttps://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87#diff-1d7bc41dda41d4c1f15ca71a4aa670385badb364ef28f64a6ec0d5080841d6ef
picnixzhttps://github.com/picnixz
Jul 20, 2025https://github.com/python/cpython/pull/136830#discussion_r2217905245
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136830
matthieucanhttps://github.com/matthieucan
Jul 20, 2025https://github.com/python/cpython/pull/136830#discussion_r2217911333
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136830
Lib/test/test_email/test__encoded_words.pyhttps://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87#diff-1d7bc41dda41d4c1f15ca71a4aa670385badb364ef28f64a6ec0d5080841d6ef
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/matthieucan
Address review commentshttps://github.com/python/cpython/pull/136830/commits/6161551bf3a35c03786662f3735eee4241de1fff
6161551https://github.com/python/cpython/pull/136830/commits/6161551bf3a35c03786662f3735eee4241de1fff
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 20, 2025https://github.com/python/cpython/pull/136830#issuecomment-3094694309
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
sprint https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Asprint
Jul 20, 2025https://github.com/python/cpython/pull/136830#event-18718538417
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136830
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/136830/files/81cff0ab4c4040cf3f31886c9dfbb0a0c3004b87
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
sprint https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Asprint
Please reload this pagehttps://github.com/python/cpython/pull/136830
https://github.com/matthieucan
https://github.com/picnixz
https://github.com/encukou
https://github.com/AA-Turner
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.