mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-23 00:57:41 +00:00
fix: encode Windows paths correctly in addProjectManually
The regex only replaced forward slashes, causing Windows paths like C:\Users\Eric\my_project to remain unchanged instead of being encoded to C--Users-Eric-my-project. This caused API routes to fail.
This commit is contained in:
committed by
Eric Blanquer
parent
57828653bf
commit
36094fb73f
@@ -353,7 +353,7 @@ router.get('/clone-progress', async (req, res) => {
|
||||
|
||||
let githubToken = null;
|
||||
if (githubTokenId) {
|
||||
const token = await getGithubTokenById(parseInt(githubTokenId), req.user?.id);
|
||||
const token = await getGithubTokenById(parseInt(githubTokenId), req.user.id);
|
||||
if (token) {
|
||||
githubToken = token.github_token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user