Skip to content

Commit af5e88b

Browse files
Fix code scanning alert no. 34: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 896f6fc commit af5e88b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/internal/fulfilStoryboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function replaceSegues(
115115
return param
116116
? typeof param.value === "string" && isEvaluable(param.value)
117117
? `\${${param.value.replace(/^\s*<%[~=]?\s|\s%>\s*$/g, "")}}`
118-
: String(param.value).replace(/`/g, "\\`")
118+
: String(param.value).replace(/[`\\]/g, "\\$&")
119119
: `\${PATH.${key}}`;
120120
});
121121
(handlers as BrickEventsMap)[key] = {

0 commit comments

Comments
 (0)