From fd3c71be22f92926419917174c95405712c1d9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 26 May 2023 11:56:14 +0200 Subject: fix(main) fix path check if it contains spaces (#871) They will be percent encoded and the check will fail. Fixes: https://github.com/jitsi/jitsi-meet-electron/issues/870 --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 8f338b2..877383a 100644 --- a/main.js +++ b/main.js @@ -246,7 +246,7 @@ function createJitsiMeetWindow() { mainWindow.webContents.session.webRequest.onBeforeSendHeaders(fileFilter, (details, callback) => { const requestedUrl = new URL.URL(details.url); - const requestedBasename = path.resolve(requestedUrl.pathname); + const requestedBasename = path.resolve(decodeURIComponent(requestedUrl.pathname)); const appBasePath = path.resolve(basePath); if (!requestedBasename.startsWith(appBasePath)) { -- cgit v1.2.3