Skip to content

fix: normalize path separators in deploy packaging for Windows - #56

Merged
Brooooooklyn merged 2 commits into
mainfrom
03-31-fix_normalize_path_separators_in_deploy_packaging_for_windows
Apr 1, 2026
Merged

Brooooooklyn merged 2 commits into
mainfrom
03-31-fix_normalize_path_separators_in_deploy_packaging_for_windows

Conversation

@shulaoda

Copy link
Copy Markdown
Member

close #55

In packages/void/src/cli/package.ts, path.relative() is used to compute relative paths for formData.append(). On Windows, path.relative() returns paths with \ separators (e.g. assets\defer-Dwmo8Go0-NWzFqTKN.js), but the Vite-generated index.js uses / in its import statements. The path should be normalized to forward slashes before uploading.

@shulaoda
shulaoda requested a review from Brooooooklyn March 31, 2026 14:28
@Brooooooklyn
Brooooooklyn merged commit ca7e9ef into main Apr 1, 2026
11 of 12 checks passed
@Brooooooklyn
Brooooooklyn deleted the 03-31-fix_normalize_path_separators_in_deploy_packaging_for_windows branch April 1, 2026 01:13
cpojer pushed a commit that referenced this pull request Sep 11, 2026
…tion (#56)

The deploymentId query parameter on GET /projects/:id/logs was
interpolated directly into an Analytics Engine SQL query without
validation, allowing an authenticated user to inject SQL and read
logs from other projects. Validate against the expected dpl_[0-9a-z]{12}
format before interpolation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **High Risk**
> Touches security-sensitive log querying by adding input validation to a value interpolated into an Analytics Engine SQL string; a mistake could still allow injection or break legitimate filtering.
> 
> **Overview**
> Prevents SQL injection in `GET /projects/:id/logs` by validating the optional `deploymentId` query param before interpolating it into the Analytics Engine SQL filter.
> 
> Also tightens project `slug` validation to explicitly disallow leading/trailing dashes while still allowing single-character slugs.
> 
> <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 0cb4a1e82dfcd4b2c9c0b35cd00ab98356cb28db. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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.

void deploy fails on Windows: "No such module" due to backslash paths

2 participants