From c6be528cdcbbd7518ba2f77029cda2dfc29e2c31 Mon Sep 17 00:00:00 2001 From: James Brunton Date: Fri, 28 Aug 2026 10:09:51 +0100 Subject: [PATCH] Fix formatting because Claude is incompetent and didn't run it itself --- frontend/editor/src/core/services/postLoginRedirect.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/editor/src/core/services/postLoginRedirect.ts b/frontend/editor/src/core/services/postLoginRedirect.ts index 7386ab8a7f..d9ffe82940 100644 --- a/frontend/editor/src/core/services/postLoginRedirect.ts +++ b/frontend/editor/src/core/services/postLoginRedirect.ts @@ -3,7 +3,11 @@ */ export function isSafePostLoginRedirect(path: unknown): path is string { if (typeof path !== "string" || path.length === 0) return false; - if (!path.startsWith("/") || path.startsWith("//") || path.startsWith("/\\")) { + if ( + !path.startsWith("/") || + path.startsWith("//") || + path.startsWith("/\\") + ) { return false; } const lowered = path.toLowerCase();