Skip to content

Commit 9fd506b

Browse files
Potential fix for code scanning alert no. 68: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 6ed2525 commit 9fd506b

File tree

1 file changed

+1
-1
lines changed
  • apps/array/src/main/services

1 file changed

+1
-1
lines changed

apps/array/src/main/services/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ const addPullRequestComment = async (
636636

637637
const { stdout } = await execAsync(
638638
`gh api repos/${repo}/pulls/${prNumber}/comments ` +
639-
`-f body="${options.body.replace(/"/g, '\\"')}" ` +
639+
`-f body="${options.body.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}" ` +
640640
`-f commit_id="${options.commitId}" ` +
641641
`-f path="${options.path}" ` +
642642
`-F line=${options.line} ` +

0 commit comments

Comments
 (0)