Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(ssrf): drop the banned dash from the http-scheme rejection message and its test mock

nirholas0289bf5eb090
diff --git a/api/_lib/ssrf-guard.js b/api/_lib/ssrf-guard.js
index cff4a9c3e..790ffd611 100644
--- a/api/_lib/ssrf-guard.js
+++ b/api/_lib/ssrf-guard.js
@@ -121,7 +121,7 @@ export async function assertSafePublicUrl(input, { allowHttp = false } = {}) {
throw new SsrfBlockedError('url is not a valid URL');
}
if (url.protocol === 'http:' && !allowHttp) {
- throw new SsrfBlockedError('http:// not allowed — use https://');
+ throw new SsrfBlockedError('http:// not allowed, use https://');
}
if (url.protocol !== 'https:' && url.protocol !== 'http:') {
throw new SsrfBlockedError(`unsupported protocol ${url.protocol}`);
diff --git a/tests/api/mcp-avatar-persist.test.js b/tests/api/mcp-avatar-persist.test.js
index 366195f87..c3b07cb0a 100644
--- a/tests/api/mcp-avatar-persist.test.js
+++ b/tests/api/mcp-avatar-persist.test.js
@@ -20,7 +20,7 @@ vi.mock('../../api/_lib/ssrf-guard.js', async (importOriginal) => {
const assertSafePublicUrl = vi.fn(async (url, opts = {}) => {
const parsed = new URL(url);
if (parsed.protocol === 'http:' && !opts.allowHttp)
- throw new SsrfBlockedError('http:// not allowed — use https://');
+ throw new SsrfBlockedError('http:// not allowed, use https://');
if (parsed.hostname === 'localhost' || parsed.hostname === '127.0.0.1')
throw new SsrfBlockedError('host resolves to a blocked range');
return parsed;