mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-03 05:22:26 +08: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
|
||||
// ? 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('=', '');
|
||||
|
|
Loading…
Reference in a new issue