1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Fix NUL characters in decrypted messages

This commit is contained in:
M66B 2019-06-21 08:06:02 +02:00
parent a510e8013e
commit 54d630dd59

View file

@ -3507,7 +3507,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
// Write decrypted body
EntityMessage m = db.message().getMessage(id);
Helper.writeText(m.getFile(context), decrypted.toString());
Helper.writeText(m.getFile(context), decrypted.toString().replace("\0", ""));
db.message().setMessageStored(id, new Date().getTime());