Title: what if my password has a reserved delimiter in it? · Issue #11 · python-hyper/hyperlink · GitHub
Open Graph Title: what if my password has a reserved delimiter in it? · Issue #11 · python-hyper/hyperlink
X Title: what if my password has a reserved delimiter in it? · Issue #11 · python-hyper/hyperlink
Description: Right now if I do this: >>> from hyperlink import URL >>> example = URL.fromText("https://example.com/") >>> example.replace(userinfo="alpha:my#password") I get this: Traceback (most recent call last): File "", line 1, in
Open Graph Description: Right now if I do this: >>> from hyperlink import URL >>> example = URL.fromText("https://example.com/") >>> example.replace(userinfo="alpha:my#password") I get this: Traceback (most recent call la...
X Description: Right now if I do this: >>> from hyperlink import URL >>> example = URL.fromText("https://example.com/") >>> example.replace(userinfo="alpha:my#password&qu...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/11
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"what if my password has a reserved delimiter in it?","articleBody":"Right now if I do this:\r\n\r\n```python\r\n>>> from hyperlink import URL\r\n>>> example = URL.fromText(\"https://example.com/\")\r\n>>> example.replace(userinfo=\"alpha:my#password\")\r\n```\r\n\r\nI get this:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n File \"\u003cinput>\", line 1, in \u003cmodule>\r\n example.replace(userinfo=\"alpha:my#password\")\r\n File \"/Users/glyph/.virtualenvs/tmp-a0b3197f7a1da77/lib/python3.6/site-package\r\ns/hyperlink/_url.py\", line 861, in replace\r\n userinfo=_optional(userinfo, self.userinfo),\r\n File \"/Users/glyph/.virtualenvs/tmp-a0b3197f7a1da77/lib/python3.6/site-package\r\ns/hyperlink/_url.py\", line 615, in __init__\r\n self._userinfo = _textcheck(\"userinfo\", userinfo, '/?#@')\r\n File \"/Users/glyph/.virtualenvs/tmp-a0b3197f7a1da77/lib/python3.6/site-package\r\ns/hyperlink/_url.py\", line 410, in _textcheck\r\n % (''.join(delims), name, value))\r\nValueError: one or more reserved delimiters /?#@ present in userinfo: 'alpha:my#\r\npassword'\r\n```\r\n\r\nThe API for setting a secret is sort of silly already (manually sticking a colon into the userinfo string), so \"fixing\" this might not involve any behavior change, but rather add a new argument (`.replace(secret=...?)`) but there should be some way to take a string that a user typed into a password box and embed it into the URL somehow without forcing the caller to do any wacky percent encoding of their own.","author":{"url":"https://github.com/glyph","@type":"Person","name":"glyph"},"datePublished":"2017-06-19T07:05:21Z","url":"https://github.com/python-hyper/hyperlink/issues/11"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:58204b78-08e4-dc98-c73c-2c3084da4092 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C372:2FDEEB:36FA09E:4968445:6B06EB9B |
| html-safe-nonce | b9b80f42029cd1bf8cfdf7fd8b9e63004ad99217880b6e7242d558a77a88bfca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzcyOjJGREVFQjozNkZBMDlFOjQ5Njg0NDU6NkIwNkVCOUIiLCJ2aXNpdG9yX2lkIjoiMjM4NDE3NzY3Mzk4MDUzNzc1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 22a27cbaaff66c6086a1a577f49d5aee76d14f1a11785941bbe7a67df64fa267 |
| hovercard-subject-tag | issue:236797659 |
| 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-hyper/hyperlink/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24f5ba75c05eb8cc9a0b306d512360709b5faf3b8a9ab2aa4d81124d4a726b4e/python-hyper/hyperlink/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24f5ba75c05eb8cc9a0b306d512360709b5faf3b8a9ab2aa4d81124d4a726b4e/python-hyper/hyperlink/issues/11 |
| og:image:alt | Right now if I do this: >>> from hyperlink import URL >>> example = URL.fromText("https://example.com/") >>> example.replace(userinfo="alpha:my#password") I get this: Traceback (most recent call la... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glyph |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyperlink git https://github.com/python-hyper/hyperlink.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 82321340 |
| octolytics-dimension-repository_nwo | python-hyper/hyperlink |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82321340 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyperlink |
| 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 | af8913cd0f2f77c41796be449ac66a9108825abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width