Fixed PGP and S/MIME line normalization

This commit is contained in:
M66B
2021-06-28 20:57:47 +02:00
parent fac2da82d1
commit 889efea43a

View File

@@ -2146,7 +2146,7 @@ public class MessageHelper {
String c = parts[1]
.replaceAll(" +$", "") // trim trailing spaces
.replace("\\r?\\n", "\\r\\n"); // normalize new lines
.replaceAll("\\r?\\n", "\r\n"); // normalize new lines
try (OutputStream os = new FileOutputStream(file)) {
os.write(c.getBytes());
}