Skip to content

fix: skill installation path check compatibility for Windows#2441

Merged
fahreddinozcan merged 3 commits intoupstash:masterfrom
Miraclexc:fix/windows-skill-install-path
Apr 13, 2026
Merged

fix: skill installation path check compatibility for Windows#2441
fahreddinozcan merged 3 commits intoupstash:masterfrom
Miraclexc:fix/windows-skill-install-path

Conversation

@Miraclexc
Copy link
Copy Markdown
Contributor

The path security check in installSkillFiles was hardcoded to use forward slashes (/).
On Windows systems, path.resolve returns backslashes (\), causing valid paths to be
rejected with an "outside the target directory" error.

This PR adds a check for backslashes to ensure cross-platform compatibility.

@fahreddinozcan
Copy link
Copy Markdown
Contributor

Thanks for the contribution!

@fahreddinozcan fahreddinozcan merged commit 3f6e310 into upstash:master Apr 13, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants