diff --git a/packages/core/src/utils/planUtils.ts b/packages/core/src/utils/planUtils.ts index 3f81c61b8c..559434b1e3 100644 --- a/packages/core/src/utils/planUtils.ts +++ b/packages/core/src/utils/planUtils.ts @@ -34,7 +34,7 @@ export async function validatePlanPath( plansDir: string, ): Promise { const safeFilename = path.basename(planPath); - const resolvedPath = path.resolve(plansDir, safeFilename); + const resolvedPath = path.join(plansDir, safeFilename); const realPath = resolveToRealPath(resolvedPath); const realPlansDir = resolveToRealPath(plansDir);