Skip to content

Commit b5ecd77

Browse files
committed
Fix CONFIG subcommand handling in unsafe mode
1 parent 98bf8d1 commit b5ecd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/agent/src/command-executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class CommandExecutor {
5555
return this.client.lastsave();
5656
}
5757

58-
if (upperCmd === 'CONFIG' && args) {
58+
if (upperCmd === 'CONFIG' && args && args.length > 0 && args[0].toUpperCase() === 'GET') {
5959
return this.client.config('GET', ...args.slice(1));
6060
}
6161

0 commit comments

Comments
 (0)