Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: restrict baseUrl to http/https, safe err.message in getRuntimeStatus
[._.]/ Adam Eivydae219a59cf2
diff --git a/server/integrations/openclaw/api.js b/server/integrations/openclaw/api.jsindex 77f769287f..66a905279a 100644--- a/server/integrations/openclaw/api.js+++ b/server/integrations/openclaw/api.js@@ -124,10 +124,13 @@ async function loadConfig() {if (configured && finalBaseUrl) {try {- // Validate that baseUrl is a well-formed URL; invalid values should not mark the integration as configured.- // This avoids later failures in URL-joining logic that would otherwise surface as generic "unreachable" errors.- // eslint-disable-next-line no-new- new URL(finalBaseUrl);+ // Validate that baseUrl is a well-formed HTTP(S) URL. Non-HTTP schemes (e.g. file:, ws:)+ // are rejected because the integration assumes fetch() HTTP semantics throughout.+ const parsed = new URL(finalBaseUrl);+ if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {+ configured = false;+ finalBaseUrl = '';+ }} catch {configured = false;finalBaseUrl = '';@@ -355,7 +358,7 @@ export async function getRuntimeStatus() {sessionsCount: Array.isArray(sessions?.sessions) ? sessions.sessions.length : null}, config, true, null);} catch (err) {- return normalizeStatusPayload(null, config, false, err.message);+ return normalizeStatusPayload(null, config, false, err instanceof Error ? err.message : String(err));}}