pub fn sanitize_command(command: &str) -> Result<SanitizeResult>Expand description
Sanitize a command string
Parses the command and checks for:
- Subshell expansion (backticks, $())
- Command chaining (&&, ||, ;)
- Redirections to sensitive paths
- Network access without acknowledgment