Fixed PGP and S/MIME line normalization

pull/199/head
M66B 4 years ago
parent fac2da82d1
commit 889efea43a

@ -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());
}

Loading…
Cancel
Save