Commit 0e34c7f
Replace shell-dependent backtick call with secure Open3 invocation
- Replace `node --version 2>/dev/null` with Open3.capture3('node', '--version')
- Add proper error handling for non-zero exit status
- Use stdout with stderr fallback for version string extraction
- Eliminates shell injection vulnerabilities from shell redirection
- Maintains same functionality while improving security
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent d3a4ba2 commit 0e34c7f
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
60 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
0 commit comments