René's URL Explorer Experiment


Title: gh-87112: Ensure that only digits convertible to integers are accepted as section number in MIME header parameter by matthieucan · Pull Request #136877 · python/cpython · GitHub

Open Graph Title: gh-87112: Ensure that only digits convertible to integers are accepted as section number in MIME header parameter by matthieucan · Pull Request #136877 · python/cpython

X Title: gh-87112: Ensure that only digits convertible to integers are accepted as section number in MIME header parameter by matthieucan · Pull Request #136877 · python/cpython

Description: With those changes, the MIME parameter parser discards parameters with an invalid section number that uses a digit not convertible to integer such as super-script "²" or "𐩃" (Kharosthi number). For...

Open Graph Description: With those changes, the MIME parameter parser discards parameters with an invalid section number that uses a digit not convertible to integer such as super-script "²" or "𐩃" (Kh...

X Description: With those changes, the MIME parameter parser discards parameters with an invalid section number that uses a digit not convertible to integer such as super-script "²" or &quot...

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

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:6efd84e9-8bf4-4448-5259-6e51501ee37e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9038:2AEA36:1B53398:243A14F:696AF5DA
html-safe-nonce8a5fbf19e958e3305ffd6634568ed0c19896291f2b767bc1ef7958cf96e65a06
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDM4OjJBRUEzNjoxQjUzMzk4OjI0M0ExNEY6Njk2QUY1REEiLCJ2aXNpdG9yX2lkIjoiMjkyODgwMDc1MjgxNDcxNjM3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacddc2b86c381d6760be797aeab7ab5d0f981276a6fbec1d0d7ab53877e878796a
hovercard-subject-tagpull_request:2680002494
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/136877/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/33bdf438c754a52aa5927bfcb10c25e9f074b31bcd0ce92835286c4ed67dd0db/python/cpython/pull/136877
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/33bdf438c754a52aa5927bfcb10c25e9f074b31bcd0ce92835286c4ed67dd0db/python/cpython/pull/136877
og:image:altWith those changes, the MIME parameter parser discards parameters with an invalid section number that uses a digit not convertible to integer such as super-script "²" or "𐩃" (Kh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamematthieucan
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/136877#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136877
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%2F136877
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/136877
Reloadhttps://github.com/python/cpython/pull/136877
Reloadhttps://github.com/python/cpython/pull/136877
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/136877
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/136877
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/136877#issue-comment-box
matthieucanhttps://github.com/matthieucan
python:mainhttps://github.com/python/cpython/tree/main
matthieucan:fix-issue-87112https://github.com/matthieucan/cpython/tree/fix-issue-87112
gh-87112: Ensure that only digits convertible to integers are accepted as section number in MIME header parameter https://github.com/python/cpython/pull/136877#top
matthieucanhttps://github.com/matthieucan
python:mainhttps://github.com/python/cpython/tree/main
matthieucan:fix-issue-87112https://github.com/matthieucan/cpython/tree/fix-issue-87112
Conversation 22 https://github.com/python/cpython/pull/136877
Commits 9 https://github.com/python/cpython/pull/136877/commits
Checks 37 https://github.com/python/cpython/pull/136877/checks
Files changed 3 https://github.com/python/cpython/pull/136877/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 20, 2025https://github.com/python/cpython/pull/136877#issue-3246473901
Please reload this pagehttps://github.com/python/cpython/pull/136877
email: ValueError in get_section when parsing header with non-ASCII digit #87112https://github.com/python/cpython/issues/87112
Please reload this pagehttps://github.com/python/cpython/pull/136877
matthieucanhttps://github.com/matthieucan
July 20, 2025 17:43https://github.com/python/cpython/pull/136877#commits-pushed-ff4ca5c
https://github.com/matthieucan
Only allow 0-9 digits in MIME parameter section numbershttps://github.com/python/cpython/pull/136877/commits/ff4ca5cf07f2de5b60f4c4618e04508b7cd918ae
ff4ca5chttps://github.com/python/cpython/pull/136877/commits/ff4ca5cf07f2de5b60f4c4618e04508b7cd918ae
https://github.com/matthieucan
Use gh bug nubmerhttps://github.com/python/cpython/pull/136877/commits/656b6fb5e1ce3972409c0a580524875a555b7cdb
656b6fbhttps://github.com/python/cpython/pull/136877/commits/656b6fb5e1ce3972409c0a580524875a555b7cdb
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
code ownerhttps://github.com/python/cpython/blob/958657bbc3351c66dd8e319503675521bfdea49a/.github/CODEOWNERS#L168
July 20, 2025 15:59https://github.com/python/cpython/pull/136877#event-18717156336
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 20, 2025https://github.com/python/cpython/pull/136877#event-18717156495
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 20, 2025 https://github.com/python/cpython/pull/136877#ref-issue-1199051119
email: ValueError in get_section when parsing header with non-ASCII digit #87112 https://github.com/python/cpython/issues/87112
https://github.com/matthieucan
Add news entryhttps://github.com/python/cpython/pull/136877/commits/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2
75636a5https://github.com/python/cpython/pull/136877/commits/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Jul 20, 2025 https://github.com/python/cpython/pull/136877#pullrequestreview-3036085487
View reviewed changes https://github.com/python/cpython/pull/136877/files/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
Please reload this pagehttps://github.com/python/cpython/pull/136877
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
Please reload this pagehttps://github.com/python/cpython/pull/136877
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
Please reload this pagehttps://github.com/python/cpython/pull/136877
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jul 20, 2025https://github.com/python/cpython/pull/136877#event-18717249635
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jul 20, 2025 https://github.com/python/cpython/pull/136877#pullrequestreview-3036091141
View reviewed changes https://github.com/python/cpython/pull/136877/files/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2
Lib/test/test_email/test__header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/75636a5d3d3bd6b40d60057b1c5b1b3b9710dbe2#diff-903868bb695b972a6c6c6fec7fdf1aedd13ef65e7e076aef8b0964a9ff004839
Please reload this pagehttps://github.com/python/cpython/pull/136877
matthieucanhttps://github.com/matthieucan
July 20, 2025 19:17https://github.com/python/cpython/pull/136877#commits-pushed-b15c404
https://github.com/matthieucan
Comments from PR review, remove inner functionhttps://github.com/python/cpython/pull/136877/commits/b15c4045927baf9ba763b29df9acbcbc0d80a7aa
b15c404https://github.com/python/cpython/pull/136877/commits/b15c4045927baf9ba763b29df9acbcbc0d80a7aa
https://github.com/matthieucan
Rephrase News entryhttps://github.com/python/cpython/pull/136877/commits/7cba42f982a73b4ec8892c81dfd17fc9652487d8
7cba42fhttps://github.com/python/cpython/pull/136877/commits/7cba42f982a73b4ec8892c81dfd17fc9652487d8
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Jul 20, 2025 https://github.com/python/cpython/pull/136877#pullrequestreview-3036102944
View reviewed changes https://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
Please reload this pagehttps://github.com/python/cpython/pull/136877
Lib/test/test_email/test__header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8#diff-903868bb695b972a6c6c6fec7fdf1aedd13ef65e7e076aef8b0964a9ff004839
Please reload this pagehttps://github.com/python/cpython/pull/136877
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jul 20, 2025 https://github.com/python/cpython/pull/136877#pullrequestreview-3036104332
View reviewed changes https://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
Please reload this pagehttps://github.com/python/cpython/pull/136877
Lib/email/_header_value_parser.pyhttps://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8#diff-4f8d778d571b7faffb42100d1f6d0374134750c72f94c0840e9368c351b41845
picnixzhttps://github.com/picnixz
Jul 20, 2025https://github.com/python/cpython/pull/136877#discussion_r2217896557
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136877
matthieucanhttps://github.com/matthieucan
Jul 20, 2025https://github.com/python/cpython/pull/136877#discussion_r2217897601
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@StanFromIrelandhttps://github.com/StanFromIreland
Please reload this pagehttps://github.com/python/cpython/pull/136877
StanFromIrelandhttps://github.com/StanFromIreland
Jul 20, 2025https://github.com/python/cpython/pull/136877#discussion_r2217898079
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136877
matthieucanhttps://github.com/matthieucan
Jul 20, 2025https://github.com/python/cpython/pull/136877#discussion_r2217901408
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136877
matthieucanhttps://github.com/matthieucan
July 20, 2025 19:35https://github.com/python/cpython/pull/136877#commits-pushed-d2d59ee
https://github.com/matthieucan
Comments from PR review, improve phrasinghttps://github.com/python/cpython/pull/136877/commits/d2d59eee08a60353f622c8de670ef250ea01ef71
d2d59eehttps://github.com/python/cpython/pull/136877/commits/d2d59eee08a60353f622c8de670ef250ea01ef71
https://github.com/matthieucan
Use separate functionhttps://github.com/python/cpython/pull/136877/commits/54bbbb752c2ae0b7dc8dba04a66ca5b3df850cd9
54bbbb7https://github.com/python/cpython/pull/136877/commits/54bbbb752c2ae0b7dc8dba04a66ca5b3df850cd9
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/136877#event-18718522502
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 22, 2025https://github.com/python/cpython/pull/136877#issuecomment-3102556351
Please reload this pagehttps://github.com/python/cpython/pull/136877
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 22, 2025https://github.com/python/cpython/pull/136877#issuecomment-3104853203
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/136877
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 23, 2025https://github.com/python/cpython/pull/136877#issuecomment-3106599277
Please reload this pagehttps://github.com/python/cpython/pull/136877
matthieucanhttps://github.com/matthieucan
July 27, 2025 14:16https://github.com/python/cpython/pull/136877#commits-pushed-f12e424
https://github.com/matthieucan
Accept digits that are convertible to int for backwards compatibilityhttps://github.com/python/cpython/pull/136877/commits/f12e424b92a0722258b85c6553ad9e94e218155c
f12e424https://github.com/python/cpython/pull/136877/commits/f12e424b92a0722258b85c6553ad9e94e218155c
https://github.com/matthieucan
Update news messagehttps://github.com/python/cpython/pull/136877/commits/b3643399e60bcec00d6756f04e032f95fe3c288e
b364339https://github.com/python/cpython/pull/136877/commits/b3643399e60bcec00d6756f04e032f95fe3c288e
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 27, 2025https://github.com/python/cpython/pull/136877#event-18839882871
https://github.com/matthieucan
matthieucanhttps://github.com/matthieucan
Jul 27, 2025https://github.com/python/cpython/pull/136877#issuecomment-3124366395
Please reload this pagehttps://github.com/python/cpython/pull/136877
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%2F136877
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/136877/files/7cba42f982a73b4ec8892c81dfd17fc9652487d8
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/136877/files/d2d59eee08a60353f622c8de670ef250ea01ef71
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
sprint https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Asprint
Please reload this pagehttps://github.com/python/cpython/pull/136877
https://github.com/matthieucan
https://github.com/encukou
https://github.com/picnixz
https://github.com/StanFromIreland
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.