mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 07:01:24 +00:00
Agents: sanitize skill env overrides
This commit is contained in:
@@ -42,7 +42,7 @@ export type EnvSanitizationOptions = {
|
||||
customAllowedPatterns?: ReadonlyArray<RegExp>;
|
||||
};
|
||||
|
||||
function validateEnvVarValue(value: string): string | undefined {
|
||||
export function validateEnvVarValue(value: string): string | undefined {
|
||||
if (value.includes("\0")) {
|
||||
return "Contains null bytes";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user