mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
urlsafeArray the join(0x00) should be join('\x00')
This commit is contained in:
parent
5d402f6405
commit
226f77e392
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ import { AbstractAjaxRemote } from 'Remote/AbstractAjax';
|
||||||
//const toUTF8 = window.TextEncoder
|
//const toUTF8 = window.TextEncoder
|
||||||
// ? text => String.fromCharCode(...new TextEncoder().encode(text))
|
// ? text => String.fromCharCode(...new TextEncoder().encode(text))
|
||||||
// : text => unescape(encodeURIComponent(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('/', '_')
|
.replace('/', '_')
|
||||||
.replace('=', '');
|
.replace('=', '');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue