825 B
825 B
status, priority, issue_id, tags, dependencies
| status | priority | issue_id | tags | dependencies | |||
|---|---|---|---|---|---|---|---|
| pending | p2 | 003 |
|
Add test for TOML triple-quote escaping in prompt
Problem Statement
The toToml function escapes """ in prompts, but there is no test verifying this works correctly. This is a potential TOML injection vector.
Findings
src/converters/claude-to-gemini.tsline 150:prompt.replace(/"""/g, '\\"\\"\\"')tests/gemini-converter.test.ts: no triple-quote test intoTomldescribe block
Proposed Solution
Add a test in the toToml describe block that passes a prompt containing """ and verifies the output escapes it correctly.
Acceptance Criteria
- Test added for prompt containing
""" - Escaped output does not prematurely close the TOML multi-line string
- All tests pass