Commit 7b34f93
committed
fix: remove unsafe eval usage in WebSocket connection script
Replace eval-based command construction with direct conditional execution
to prevent potential command injection if auth tokens contain special characters.
This addresses the security concern raised by Copilot review.
Change-Id: Ie1fbef35efd122502fa1d946fbd1bc268a3badb6
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent 581d7f3 commit 7b34f93
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| |||
0 commit comments