Repository navigation
Commit 759d385
fix(shared): reject Azure clone paths containing query or fragment delimiters
The Azure path captures accepted `?` and `#`, so
`[email protected]:v3/org?token/project/repo` became
`https://dev.azure.com/org?token/project/_git/repo`, whose real path is
only `/org`. Exclude both delimiters from each component so such URLs
return null instead of a clone URL for the wrong repository.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 6b5c112 commit 759d385
2 files changed
Lines changed: 8 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments