From faa17ca3de48280ff630d67290cb7bba6e0cf140 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 27 Dec 2022 20:57:11 +0100 Subject: [PATCH] Resolve #800 and #802 --- dev/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/boot.js b/dev/boot.js index f21c8e752..ec7d6d777 100644 --- a/dev/boot.js +++ b/dev/boot.js @@ -37,10 +37,10 @@ try { if (!smctoken) { let data = new Uint8Array(16); crypto.getRandomValues(data); - smctoken = btoa(String.fromCharCode(...data)); + smctoken = encodeURIComponent(btoa(String.fromCharCode(...data))); } localStorage.setItem('smctoken', smctoken); - doc.cookie = 'smctoken='+encodeURIComponent(smctoken)+"; path=/; samesite=strict"; + doc.cookie = 'smctoken='+smctoken+"; path=/; samesite=strict"; } catch (e) { console.error(e); }