From e4026cf022e2571d577748badff50a4fac067084 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Wed, 24 Jul 2024 13:05:14 -0500 Subject: [PATCH] fixup! implement safe path handling --- src/lib/server/safePath.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/server/safePath.ts b/src/lib/server/safePath.ts index b7bb4e0..52dc095 100644 --- a/src/lib/server/safePath.ts +++ b/src/lib/server/safePath.ts @@ -8,8 +8,6 @@ export function safePath(pathIn: string, options: { base: string, noSubDir?: boo pathIn = path.join(base, pathIn); const normBase = path.normalize(base); const normPath = path.normalize(pathIn); - console.log(normBase); - console.log(normPath); if (normPath !== normBase && normPath.startsWith(normBase)) { if (options.noSubDir) {