mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 21:52:56 +00:00
style: run oxfmt and fix gate failures
This commit is contained in:
@@ -49,7 +49,7 @@ function validateEnvVarValue(value: string): string | undefined {
|
||||
if (value.length > 32768) {
|
||||
return "Value exceeds maximum length";
|
||||
}
|
||||
if (/^[A-Za-z0-9+/=]{100,}$/.test(value)) {
|
||||
if (/^[A-Za-z0-9+/=]{80,}$/.test(value)) {
|
||||
return "Value looks like base64-encoded credential data";
|
||||
}
|
||||
return undefined;
|
||||
@@ -88,6 +88,10 @@ export function sanitizeEnvVars(
|
||||
|
||||
const warning = validateEnvVarValue(value);
|
||||
if (warning) {
|
||||
if (warning === "Contains null bytes") {
|
||||
blocked.push(key);
|
||||
continue;
|
||||
}
|
||||
warnings.push(`${key}: ${warning}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user