From 26661f7a83ef853de26b1b4519a34f2c7eb648f3 Mon Sep 17 00:00:00 2001 From: diced Date: Tue, 9 Sep 2025 16:06:27 -0700 Subject: [PATCH] fix: encode id for view route --- src/client/ssr-view/server.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/ssr-view/server.tsx b/src/client/ssr-view/server.tsx index fc68e581..d9f0d707 100644 --- a/src/client/ssr-view/server.tsx +++ b/src/client/ssr-view/server.tsx @@ -25,7 +25,7 @@ import { createRoutes } from './routes'; export const getFile = async (id: string) => prisma.file.findFirst({ - where: { name: id as string }, + where: { name: decodeURIComponent(id) }, select: { ...fileSelect, password: true,