From 226f77e39211e933f5275c2cc32c424c0b5f1232 Mon Sep 17 00:00:00 2001 From: djmaze Date: Thu, 20 Aug 2020 07:28:08 +0200 Subject: [PATCH] urlsafeArray the join(0x00) should be join('\x00') --- dev/Remote/User/Ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Remote/User/Ajax.js b/dev/Remote/User/Ajax.js index 400d7a1d0..bbbef3642 100644 --- a/dev/Remote/User/Ajax.js +++ b/dev/Remote/User/Ajax.js @@ -29,7 +29,7 @@ import { AbstractAjaxRemote } from 'Remote/AbstractAjax'; //const toUTF8 = window.TextEncoder // ? text => String.fromCharCode(...new TextEncoder().encode(text)) // : text => unescape(encodeURIComponent(text)), -const urlsafeArray = array => btoa(unescape(encodeURIComponent(array.join(0x00).replace(/\r\n/g, '\n')))) +const urlsafeArray = array => btoa(unescape(encodeURIComponent(array.join('\x00').replace(/\r\n/g, '\n')))) .replace('+', '-') .replace('/', '_') .replace('=', '');