From e34881fec4e2789086763a23af392e24e2077e0a Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Tue, 14 Apr 2026 22:28:30 +1000 Subject: [PATCH] fix(export): remove output path restriction --- electron/ipc/handlers.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts index 919e64f0..57b83ba5 100644 --- a/electron/ipc/handlers.ts +++ b/electron/ipc/handlers.ts @@ -5683,14 +5683,6 @@ body{background:transparent;overflow:hidden;width:100vw;height:100vh} ipcMain.handle('write-exported-video-to-path', async (_event, videoData: ArrayBuffer, outputPath: string) => { try { const resolvedPath = path.resolve(outputPath) - const allowedPrefixes = [app.getPath('temp'), app.getPath('downloads'), RECORDINGS_DIR] - if (!allowedPrefixes.some((prefix) => resolvedPath.startsWith(prefix))) { - return { - success: false, - message: 'Output path is not in an allowed directory', - canceled: false, - } - } await fs.mkdir(path.dirname(resolvedPath), { recursive: true }); await fs.writeFile(resolvedPath, Buffer.from(videoData));