aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2023-05-26 11:56:14 +0200
committerGitHub <noreply@github.com>2023-05-26 11:56:14 +0200
commitfd3c71be22f92926419917174c95405712c1d9fe (patch)
tree3346c2b547372cf485d3ce8f5576fcc91d25e22f /main.js
parent045f4fbb35087ddf808ab385c398e83dd0ab457a (diff)
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
Diffstat (limited to 'main.js')
-rw-r--r--main.js2
1 files changed, 1 insertions, 1 deletions
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)) {