From 3d3bfad5d0b30f37ebff5017e4adc2dee2136069 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 19 Nov 2024 03:15:48 -0600 Subject: [PATCH] fixup! more path sanitization --- .../backend/src/server/api/endpoints/drive/folders/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/drive/folders/update.ts b/packages/backend/src/server/api/endpoints/drive/folders/update.ts index cc45bd8c58..2374c754f7 100644 --- a/packages/backend/src/server/api/endpoints/drive/folders/update.ts +++ b/packages/backend/src/server/api/endpoints/drive/folders/update.ts @@ -96,7 +96,7 @@ export default class extends Endpoint { // eslint- // Check if the circular reference will occur const checkCircle = async (folderId: string, limit: number = 32): Promise => { if (limit <= 0) { - return false; + return true; } const folder2 = await this.driveFoldersRepository.findOneByOrFail({ id: folderId,