You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(scripts): fix escaping and shell commands #558
Wrong escaping order (js/double-escaping, alerts 5, 6, 7).scripts/tailwind/index.js escapes backticks first and backslashes second when it writes the generated CSS into a template literal. A backtick in the CSS therefore becomes two backslashes and a bare backtick, which ends the literal and breaks tw-styles.ts. ${ isn't escaped at all. Today's output has neither, so this doesn't affect current builds.
Commands built as shell strings (js/shell-command-injection-from-environment, alerts 1, 2, 3, 4).scripts/build.js and scripts/tailwind/index.js put absolute paths into shell command strings. A checkout path with a space or a shell metacharacter breaks the build (the tailwind and CEM config paths aren't even quoted), or runs part of the path as a command.
Fix: escape in the right order in one tested helper, and run the commands without a shell. The generated styles must stay byte-identical.
Activity