mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
FIX non-compliant Autocrypt Header
This commit is contained in:
parent
ba496919dd
commit
c1f1faca58
1 changed files with 3 additions and 1 deletions
|
|
@ -1634,7 +1634,9 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
Object.entries(PgpUserStore.getPublicKeyOfEmails(recipients) || {}).forEach(([k,v]) =>
|
||||
params.autocrypt.push({
|
||||
addr: k,
|
||||
keydata: v.replace(/-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----/g, '').trim()
|
||||
keydata: v
|
||||
.replace(/-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----/g, '')
|
||||
.replace(/\s+/g, '') // Single base64 string, let the server do compliance formatting
|
||||
})
|
||||
);
|
||||
for (let i = 0; i < encryptOptions.length; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue