From d0a9f27f23b0e8255487e8ba67c1e0e351a16f7a Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 24 Sep 2023 15:37:13 +0800 Subject: [PATCH] encode base64 --- src/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index e9f9b00a..5aafbd72 100644 --- a/src/util.js +++ b/src/util.js @@ -292,7 +292,9 @@ export async function checkAppPath() { const pathSeg = pathMatch[1]; if (pathSeg.startsWith(`57275${mf}.${llc}_`)) return; // this will report the path and may return a msg - const response = await ky(`https://losslesscut-analytics.mifi.no/${pathSeg.length}/${btoa(pathSeg)}`).json(); + const url = `https://losslesscut-analytics.mifi.no/${pathSeg.length}/${encodeURIComponent(btoa(pathSeg))}`; + // console.log('Reporting app', pathSeg, url); + const response = await ky(url).json(); if (response.invalid) toast.fire({ timer: 60000, icon: 'error', title: response.title, text: response.text }); } catch (err) { if (isDev) console.warn(err.message);