mirror of
https://github.com/marcusDenslow/FERRUM.git
synced 2026-10-25 15:48:50 +01:00
Replace shell command string building with temp file approach for commit messages to prevent crashes from special characters, quotes, backticks, and newlines. Changes: - Use `git commit -F tempfile` instead of `git commit -m "message"` - Write commit messages to temporary files before passing to git - Updated commit_marked_files(), commit_staged_changes_only(), and amend_commit() - Eliminates shell command injection vulnerabilities - Supports unlimited message length and any special characters Fixes crashes when commit messages contain backticks, quotes, newlines, or other shell metacharacters that were previously breaking the shell command construction.
513 KiB
Executable File
513 KiB
Executable File