mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:48:28 +00:00
fix(security): harden exec wrapper allowlist execution parity
This commit is contained in:
@@ -363,7 +363,7 @@ function consumeLongOptionToken(
|
||||
function consumeShortOptionClusterToken(
|
||||
args: string[],
|
||||
index: number,
|
||||
raw: string,
|
||||
_raw: string,
|
||||
cluster: string,
|
||||
flags: string[],
|
||||
allowedValueFlags: ReadonlySet<string>,
|
||||
@@ -383,7 +383,7 @@ function consumeShortOptionClusterToken(
|
||||
}
|
||||
return isInvalidValueToken(args[index + 1]) ? -1 : index + 2;
|
||||
}
|
||||
return hasGlobToken(raw) ? -1 : index + 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
function consumePositionalToken(token: string, positional: string[]): boolean {
|
||||
|
||||
Reference in New Issue
Block a user