Title: netrc.py strips away valid backslash characters from tokens · Issue #99080 · python/cpython · GitHub
Open Graph Title: netrc.py strips away valid backslash characters from tokens · Issue #99080 · python/cpython
X Title: netrc.py strips away valid backslash characters from tokens · Issue #99080 · python/cpython
Description: Bug report Commit 15409c7 to close PR #26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the following .netrc file machine my.host.com lo...
Open Graph Description: Bug report Commit 15409c7 to close PR #26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the foll...
X Description: Bug report Commit 15409c7 to close PR #26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the foll...
Opengraph URL: https://github.com/python/cpython/issues/99080
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"netrc.py strips away valid backslash characters from tokens","articleBody":"# Bug report\r\n\r\nCommit https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378 to close PR https://github.com/python/cpython/pull/26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the following .netrc file\r\n\r\n```\r\nmachine my.host.com login user password mypass\\word\r\n```\r\n\r\nwill be `mypassword` instead of `mypass\\word`. Same behavior would happen for login or account tokens.\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: \u003e=3.11\r\n\n\n\u003c!-- gh-pr-number: gh-99088 --\u003e\n* PR: gh-99088\n\u003c!-- /gh-pr-number --\u003e\n","author":{"url":"https://github.com/stefanoboriero","@type":"Person","name":"stefanoboriero"},"datePublished":"2022-11-03T22:47:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/99080/cpython/issues/99080"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:28570d9b-cc0f-675c-5f23-95fcae8b245b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFBC:2B46F2:25A94:33953:696A45D5 |
| html-safe-nonce | 78c79f58ed898f14a58dfee0d582da102e3bece1c0bb5e2692218c4075f70285 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkJDOjJCNDZGMjoyNUE5NDozMzk1Mzo2OTZBNDVENSIsInZpc2l0b3JfaWQiOiIxMDE3NTgyMjY2NjYyNDM1NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9c4150cdb55053b5c2093a571cc8b272207178e9cc79cf967dfc2099c8f46e2 |
| hovercard-subject-tag | issue:1435340728 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/99080/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f784a3c2bb4e3f7c50e574e9869835c3fa107511c48912ec20b2a1154fd5712e/python/cpython/issues/99080 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f784a3c2bb4e3f7c50e574e9869835c3fa107511c48912ec20b2a1154fd5712e/python/cpython/issues/99080 |
| og:image:alt | Bug report Commit 15409c7 to close PR #26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the foll... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stefanoboriero |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width