Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: clone URL rewrite breaks when the HTTPS password contains @ #27846

Closedsamkelly880(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

packages/shared

Steps to reproduce

Call cloneUrlForProtocol("https://user:tok@en@github.com/a/b.git", "ssh").

Expected behavior

git@github.com:a/b.git (password may contain @; host is after the last userinfo @).

Actual behavior

git@en@github.com:a/b.git — the regex stopped userinfo at the first @.

Impact

Minor bug or occasional failure

Fix

https://github.com/pingdotgg/t3code/pull/27845

  1. Thanks for reporting this! #24005 fixed credential parsing on main in 7a633ce, including passwords containing @.

  2. juliusmarminge closed this

Sign in to join this conversation.