From 91cc42017f35928f96613b028f6794d802f2954e Mon Sep 17 00:00:00 2001 From: EmeraldBlock Date: Sat, 5 Feb 2022 22:11:59 -0600 Subject: [PATCH] fix fs-job sanitization --- electron/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/index.js b/electron/index.js index 41831bdd..264aa581 100644 --- a/electron/index.js +++ b/electron/index.js @@ -316,7 +316,7 @@ async function writeFileSafe(filename, contents) { } ipcMain.handle("fs-job", async (event, job) => { - const filenameSafe = job.filename.replace(/[^a-z\.\-_0-9]/i, "_"); + const filenameSafe = job.filename.replace(/[^a-z\.\-_0-9]/gi, "_"); const fname = path.join(storePath, filenameSafe); switch (job.type) { case "read": {