Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

Conflict resolution

jubnl0ebcff9504c7
diff --git a/server/src/routes/immich.ts b/server/src/routes/immich.ts
index 8a3ef48ba..c39a7ec00 100644
--- a/server/src/routes/immich.ts
+++ b/server/src/routes/immich.ts
@@ -92,7 +92,8 @@ router.get('/status', authenticate, async (req: Request, res: Response) => {
router.post('/test', authenticate, async (req: Request, res: Response) => {
const { immich_url, immich_api_key } = req.body;
if (!immich_url || !immich_api_key) return res.json({ connected: false, error: 'URL and API key required' });
- if (!isValidImmichUrl(immich_url)) return res.json({ connected: false, error: 'Invalid Immich URL' });
+ const ssrf = await checkSsrf(immich_url);
+ if (!ssrf.allowed) return res.json({ connected: false, error: ssrf.error ?? 'Invalid Immich URL' });
try {
const resp = await fetch(`${immich_url}/api/users/me`, {
headers: { 'x-api-key': immich_api_key, 'Accept': 'application/json' },