René's URL Explorer Experiment


Title: Fix `IndexError` in `GitConfigParser` When a Quoted Config Value Contains a Trailing New Line by DaveLak · Pull Request #1908 · gitpython-developers/GitPython · GitHub

Open Graph Title: Fix `IndexError` in `GitConfigParser` When a Quoted Config Value Contains a Trailing New Line by DaveLak · Pull Request #1908 · gitpython-developers/GitPython

X Title: Fix `IndexError` in `GitConfigParser` When a Quoted Config Value Contains a Trailing New Line by DaveLak · Pull Request #1908 · gitpython-developers/GitPython

Description: Fixes: #1887 Improve the guarding if check in GitConfigParser's string_decode function to safely handle empty strings and prevent IndexErrors when accessing string elements. This resolves an IndexE...

Open Graph Description: Fixes: #1887 Improve the guarding if check in GitConfigParser's string_decode function to safely handle empty strings and prevent IndexErrors when accessing string elements. This resolves an In...

X Description: Fixes: #1887 Improve the guarding if check in GitConfigParser's string_decode function to safely handle empty strings and prevent IndexErrors when accessing string elements. This resolves a...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1908

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:8d7357de-6259-8bd1-4200-6e3a78b95547
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8556:15FF28:208DB0E:2DC6A16:696A5D34
html-safe-nonce73fc1a276daef28fa28e23e5ca68e2f21eb60b9d2a905bb281ce620caa76f4a4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTU2OjE1RkYyODoyMDhEQjBFOjJEQzZBMTY6Njk2QTVEMzQiLCJ2aXNpdG9yX2lkIjoiNTUxODI2OTM4MzQ4Mjk1NzEwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc7d8acf7d89b2e4c02b8f65df566325dc6befa8d1be916898c334d43fbab3926
hovercard-subject-tagpull_request:1835558725
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/gitpython-developers/GitPython/1908/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6a3955132ceeed66420f1ec30bee0544e53e8f1ddbad84380b21bf6566e680c0/gitpython-developers/GitPython/pull/1908
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a3955132ceeed66420f1ec30bee0544e53e8f1ddbad84380b21bf6566e680c0/gitpython-developers/GitPython/pull/1908
og:image:altFixes: #1887 Improve the guarding if check in GitConfigParser's string_decode function to safely handle empty strings and prevent IndexErrors when accessing string elements. This resolves an In...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDaveLak
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
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
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/pull/1908#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1908
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%2Fgitpython-developers%2FGitPython%2Fpull%2F1908
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=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1908
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1908
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1908
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/gitpython-developers/GitPython/pull/1908#issue-comment-box
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
DaveLak:fix-issue-1887https://github.com/DaveLak/GitPython/tree/fix-issue-1887
Fix IndexError in GitConfigParser When a Quoted Config Value Contains a Trailing New Line https://github.com/gitpython-developers/GitPython/pull/1908#top
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
DaveLak:fix-issue-1887https://github.com/DaveLak/GitPython/tree/fix-issue-1887
Conversation 13 https://github.com/gitpython-developers/GitPython/pull/1908
Commits 3 https://github.com/gitpython-developers/GitPython/pull/1908/commits
Checks 0 https://github.com/gitpython-developers/GitPython/pull/1908/checks
Files changed 3 https://github.com/gitpython-developers/GitPython/pull/1908/files
https://github.co/hiddenchars
https://github.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }}
https://github.com/DaveLak
DaveLakhttps://github.com/DaveLak
Apr 22, 2024https://github.com/gitpython-developers/GitPython/pull/1908#issue-2257597339
#1887https://github.com/gitpython-developers/GitPython/issues/1887
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/DaveLak
DaveLakhttps://github.com/DaveLak
force-pushedhttps://github.com/gitpython-developers/GitPython/compare/b6980a0f6dc24f7dc885d324c6b4ae56ad1139af..f6174e753b146d78e40d8d49585819003dd31d5d
b6980a0https://github.com/gitpython-developers/GitPython/commit/b6980a0f6dc24f7dc885d324c6b4ae56ad1139af
f6174e7https://github.com/gitpython-developers/GitPython/commit/f6174e753b146d78e40d8d49585819003dd31d5d
Compare https://github.com/gitpython-developers/GitPython/compare/b6980a0f6dc24f7dc885d324c6b4ae56ad1139af..f6174e753b146d78e40d8d49585819003dd31d5d
April 22, 2024 22:59https://github.com/gitpython-developers/GitPython/pull/1908#event-12566745513
https://github.com/DaveLak
DaveLakhttps://github.com/DaveLak
Apr 22, 2024 https://github.com/gitpython-developers/GitPython/pull/1908#ref-issue-2216638669
Unhandled IndexError when calling .read() on a malformed config file #1887 https://github.com/gitpython-developers/GitPython/issues/1887
https://github.com/DaveLak
Fix IndexError in GitConfigParser when config value ends in new linehttps://github.com/gitpython-developers/GitPython/pull/1908/commits/47e5738074e7f9acfb64d164206770bbd41685a0
47e5738https://github.com/gitpython-developers/GitPython/pull/1908/commits/47e5738074e7f9acfb64d164206770bbd41685a0
gitpython-developers#1887https://github.com/gitpython-developers/GitPython/issues/1887
https://github.com/DaveLak
DaveLakhttps://github.com/DaveLak
force-pushedhttps://github.com/gitpython-developers/GitPython/compare/f6174e753b146d78e40d8d49585819003dd31d5d..47e5738074e7f9acfb64d164206770bbd41685a0
f6174e7https://github.com/gitpython-developers/GitPython/commit/f6174e753b146d78e40d8d49585819003dd31d5d
47e5738https://github.com/gitpython-developers/GitPython/commit/47e5738074e7f9acfb64d164206770bbd41685a0
Compare https://github.com/gitpython-developers/GitPython/compare/f6174e753b146d78e40d8d49585819003dd31d5d..47e5738074e7f9acfb64d164206770bbd41685a0
April 22, 2024 23:20https://github.com/gitpython-developers/GitPython/pull/1908#event-12566884145
https://github.com/DaveLak
DaveLakhttps://github.com/DaveLak
Apr 22, 2024 https://github.com/gitpython-developers/GitPython/pull/1908#pullrequestreview-2015952601
View reviewed changes https://github.com/gitpython-developers/GitPython/pull/1908/files/47e5738074e7f9acfb64d164206770bbd41685a0
fuzzing/fuzz-targets/fuzz_config.pyhttps://github.com/gitpython-developers/GitPython/pull/1908/files/47e5738074e7f9acfb64d164206770bbd41685a0#diff-4bc4e633a42f190da426a2988ab535169e6e88a7beeb7ccfbf52e68be97501ec
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/Byron
Byronhttps://github.com/Byron
Apr 23, 2024 https://github.com/gitpython-developers/GitPython/pull/1908#pullrequestreview-2016331045
View reviewed changes https://github.com/gitpython-developers/GitPython/pull/1908/files/47e5738074e7f9acfb64d164206770bbd41685a0
Byronhttps://github.com/Byron
https://github.com/gitpython-developers/GitPython/pull/1908#pullrequestreview-2016331045
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
fuzzing/fuzz-targets/fuzz_config.pyhttps://github.com/gitpython-developers/GitPython/pull/1908/files/47e5738074e7f9acfb64d164206770bbd41685a0#diff-4bc4e633a42f190da426a2988ab535169e6e88a7beeb7ccfbf52e68be97501ec
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
fuzzing/fuzz-targets/fuzz_config.pyhttps://github.com/gitpython-developers/GitPython/pull/1908/files/47e5738074e7f9acfb64d164206770bbd41685a0#diff-4bc4e633a42f190da426a2988ab535169e6e88a7beeb7ccfbf52e68be97501ec
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/Byron
Avoid unnecessary isinstance checkhttps://github.com/gitpython-developers/GitPython/pull/1908/commits/c2283f6e3566606300f64c44a12197f0b65f0d71
c2283f6https://github.com/gitpython-developers/GitPython/pull/1908/commits/c2283f6e3566606300f64c44a12197f0b65f0d71
https://github.com/EliahKagan
EliahKaganhttps://github.com/EliahKagan
Apr 25, 2024 https://github.com/gitpython-developers/GitPython/pull/1908#pullrequestreview-2023712617
View reviewed changes https://github.com/gitpython-developers/GitPython/pull/1908/files/c2283f6e3566606300f64c44a12197f0b65f0d71
EliahKaganhttps://github.com/EliahKagan
https://github.com/gitpython-developers/GitPython/pull/1908#pullrequestreview-2023712617
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
git/config.pyhttps://github.com/gitpython-developers/GitPython/pull/1908/files/c2283f6e3566606300f64c44a12197f0b65f0d71#diff-dd51b67c435dfba6f72cc0d08f99456393556623a0f098ac2808d1a7cb78d53a
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/Byron
Use endswith() for more clarityhttps://github.com/gitpython-developers/GitPython/pull/1908/commits/1a0ab5bbdaa9df5d04d1b6946af419492b650fce
1a0ab5bhttps://github.com/gitpython-developers/GitPython/pull/1908/commits/1a0ab5bbdaa9df5d04d1b6946af419492b650fce
https://github.com/Byron
Byronhttps://github.com/Byron
Apr 26, 2024https://github.com/gitpython-developers/GitPython/pull/1908#issuecomment-2078650692
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/Byron
Byronhttps://github.com/Byron
82bb3bbhttps://github.com/gitpython-developers/GitPython/commit/82bb3bb82c0255d9f6250a88fddfaff3bc084b49
Apr 26, 2024https://github.com/gitpython-developers/GitPython/pull/1908#event-12618789302
https://github.com/EliahKagan
EliahKaganhttps://github.com/EliahKagan
Apr 26, 2024 https://github.com/gitpython-developers/GitPython/pull/1908#pullrequestreview-2024163337
View reviewed changes https://github.com/gitpython-developers/GitPython/pull/1908/files/1a0ab5bbdaa9df5d04d1b6946af419492b650fce
git/config.pyhttps://github.com/gitpython-developers/GitPython/pull/1908/files/1a0ab5bbdaa9df5d04d1b6946af419492b650fce#diff-dd51b67c435dfba6f72cc0d08f99456393556623a0f098ac2808d1a7cb78d53a
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1908
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
EliahKaganhttps://github.com/EliahKagan
Apr 26, 2024https://github.com/gitpython-developers/GitPython/pull/1908#discussion_r1580501225
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
that commenthttps://github.com/gitpython-developers/GitPython/pull/1908#discussion_r1580488620
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
Byronhttps://github.com/Byron
Apr 26, 2024https://github.com/gitpython-developers/GitPython/pull/1908#discussion_r1580524203
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/DaveLak
DaveLakhttps://github.com/DaveLak
April 29, 2024 00:34https://github.com/gitpython-developers/GitPython/pull/1908#event-12636414108
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1908
https://github.com/Byron
Byron https://github.com/Byron
https://github.com/gitpython-developers/GitPython/pull/1908/files/1a0ab5bbdaa9df5d04d1b6946af419492b650fce
https://github.com/EliahKagan
EliahKagan https://github.com/EliahKagan
https://github.com/gitpython-developers/GitPython/pull/1908/files/c2283f6e3566606300f64c44a12197f0b65f0d71
Unhandled IndexError when calling .read() on a malformed config file https://github.com/gitpython-developers/GitPython/issues/1887
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1908
https://github.com/DaveLak
https://github.com/Byron
https://github.com/EliahKagan
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.