fix(mail): Fix issue where mailto: links are badly formatted when html composing

This commit is contained in:
smizrahi
2024-08-16 12:58:31 +02:00
parent b602b2b188
commit 86446a059c
@@ -844,6 +844,10 @@
if (match)
data[param] = decodeURIComponent(match[1]);
});
if ('html' == Message.$Preferences.defaults.SOGoMailComposeMessageType && data.text && data.text.length > 0) {
data.text = data.text.replace(/(\r\n|\n|\r)/g, '<br/>');
}
// Other Recipients
_.forEach(['cc', 'bcc'], function (param) {
var re = new RegExp(param + '=([^&]+)');