diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2023-05-26 11:56:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 11:56:14 +0200 |
commit | fd3c71be22f92926419917174c95405712c1d9fe (patch) | |
tree | 3346c2b547372cf485d3ce8f5576fcc91d25e22f | |
parent | 045f4fbb35087ddf808ab385c398e83dd0ab457a (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
-rw-r--r-- | main.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |