mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-18 07:43:00 -07:00
fix(cli): escape executables in shell autocompletion to prevent command injection
This commit is contained in:
@@ -432,7 +432,7 @@ export function useShellCompletion({
|
||||
.slice(0, MAX_SHELL_SUGGESTIONS)
|
||||
.map((cmd) => ({
|
||||
label: cmd,
|
||||
value: cmd,
|
||||
value: escapeShellPath(cmd),
|
||||
description: 'command',
|
||||
}));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user