mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-18 06:08:58 +00:00
Cleanup canonical message handling for signatures
This commit is contained in:
@@ -59,7 +59,7 @@ function openpgp_encoding_deArmor(text) {
|
||||
// splittedtext[indexBase] - the message
|
||||
// splittedtext[indexBase + 1] - the signature and checksum
|
||||
|
||||
var msg = openpgp_encoding_split_headers(splittedtext[indexBase].replace(/^- /mg, ''));
|
||||
var msg = openpgp_encoding_split_headers(splittedtext[indexBase].replace(/^- /mg, '').replace(/[\t ]+\n/g, "\n"));
|
||||
var sig = openpgp_encoding_split_headers(splittedtext[indexBase + 1].replace(/^- /mg, ''));
|
||||
var sig_sum = openpgp_encoding_split_checksum(sig.body);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user