fix: encode id for view route

This commit is contained in:
diced
2025-09-09 16:06:27 -07:00
parent 01a73df7f3
commit 26661f7a83

View File

@@ -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,