mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-12 17:16:41 +00:00
Merge pull request #111 from cryptoreddit/patch-1
In Base64 encoding, if result ends in \n, remove it. (Fixes #79, #105)
This commit is contained in:
commit
81fdb00418
@ -54,7 +54,8 @@ function s2r(t) {
|
|||||||
r += "\n";
|
r += "\n";
|
||||||
r += '=';
|
r += '=';
|
||||||
}
|
}
|
||||||
|
if (r.charAt(r.length-1)==="\n")
|
||||||
|
r=r.slice(0,-1);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user