mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-08 13:55:06 -05:00
fix(frontend): apply suggestion on path validation
Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
This commit is contained in:
@@ -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" &&
|
||||
|
||||
Reference in New Issue
Block a user