Commit d9827b9
Eric Wheeler
fix: restrict insert_content to append-only
The insert_content tool was intended for appending content only, but the code
allowed arbitrary line numbers which could corrupt files. This change enforces
that line_number must be 0 (append-only mode) to prevent file corruption.
Signed-off-by: Eric Wheeler <[email protected]>1 parent 0ecc56f commit d9827b9
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
0 commit comments