mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
fix(issue-plan-agent): ensure shell safety by escaping single quotes in solution JSON
This commit is contained in:
@@ -203,7 +203,9 @@ for (const issue of issues) {
|
||||
is_bound: false,
|
||||
created_at: new Date().toISOString()
|
||||
});
|
||||
Bash(`echo '${solutionJson}' >> "${solPath}"`);
|
||||
// Escape single quotes for shell safety: ' → '\''
|
||||
const safeJson = solutionJson.replace(/'/g, "'\\''");
|
||||
Bash(`echo '${safeJson}' >> "${solPath}"`);
|
||||
}
|
||||
|
||||
// Step 2: Bind decision based on solution count
|
||||
|
||||
Reference in New Issue
Block a user