Fixed PGP and S/MIME line normalization

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

@ -2146,7 +2146,7 @@ public class MessageHelper {
String c = parts[1] String c = parts[1]
.replaceAll(" +$", "") // trim trailing spaces .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)) { try (OutputStream os = new FileOutputStream(file)) {
os.write(c.getBytes()); os.write(c.getBytes());
} }

Loading…
Cancel
Save