Skip to content

fix(sourcemaps): Quote arguments in generated Wrangler scripts - #1364

Merged
msonnb merged 3 commits into
masterfrom
ms/quote-wrangler-script-arguments
Oct 8, 2026
Merged

msonnb merged 3 commits into
masterfrom
ms/quote-wrangler-script-arguments

Conversation

@msonnb

@msonnb msonnb commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Wrangler source map setup reuses the extracted --outdir value in a generated shell command. Previously, a quoted literal directory containing shell syntax could be evaluated when the upload script ran.

Safely quote generated directory, strip-prefix, self-hosted URL, organization, and project arguments, and quote release variable references. Add shell-execution regressions for both --outdir forms, a normal-path control, and embedded quotes and command substitution. Update the E2E script expectations to match the newly quoted arguments.

Fixes WIZARD-148.

Co-Authored-By: GPT-6 <noreply@openai.com>
@linear-code

linear-code Bot commented Oct 8, 2026

Copy link
Copy Markdown

WIZARD-148

msonnb and others added 2 commits October 8, 2026 12:27
Co-Authored-By: GPT-6 <noreply@openai.com>
@msonnb
msonnb requested review from JPeer264 and andreiborza October 8, 2026 10:41
@msonnb
msonnb marked this pull request as ready for review October 8, 2026 10:41

@JPeer264 JPeer264 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing that

@msonnb
msonnb merged commit dfa1a7d into master Oct 8, 2026
60 checks passed
@msonnb
msonnb deleted the ms/quote-wrangler-script-arguments branch October 8, 2026 11:03
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