From eb6619fd0f1ee531d4f455bf9c20e1b96cdbf3e7 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 28 Jan 2026 12:45:13 -0600 Subject: [PATCH] fix(frontend): apply suggestion on path validation Co-authored-by: Reinier van der Leer --- autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts b/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts index 56d76aa27f..442bd77e0f 100644 --- a/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts +++ b/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts @@ -22,7 +22,7 @@ function buildBackendUrl(path: string[], queryString: string): string { function isWorkspaceDownloadRequest(path: string[]): boolean { // Match pattern: api/workspace/files/{id}/download (5 segments) return ( - path.length >= 5 && + path.length == 5 && path[0] === "api" && path[1] === "workspace" && path[2] === "files" &&