Skip to content

fix: use platform-aware path separator in isPathAllowed - #38

Merged
paulocastellano merged 1 commit into
mainfrom
fix/windows-path-validation
Feb 28, 2026
Merged

fix: use platform-aware path separator in isPathAllowed#38
paulocastellano merged 1 commit into
mainfrom
fix/windows-path-validation

Conversation

@paulocastellano

Copy link
Copy Markdown
Contributor

Summary

  • Replace hardcoded / with path.sep so path validation works on Windows (backslash separator)
  • Normalize directory paths from app.getPath() with resolve(normalize()) before comparison
  • Update symlink test mocks to use platform-resolved paths

Fixes CI failure on windows-latest: https://github.com/zequel-labs/zequel/actions/runs/22491325966/job/65154092195

Replace hardcoded '/' with path.sep and normalize directory paths
from app.getPath() so path validation works correctly on Windows.
@paulocastellano
paulocastellano merged commit c99ca8e into main Feb 28, 2026
3 checks passed
@paulocastellano
paulocastellano deleted the fix/windows-path-validation branch February 28, 2026 13:38
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.

1 participant