mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
fix(mail): Fix issue where mailto: links are badly formatted when html composing
This commit is contained in:
@@ -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 + '=([^&]+)');
|
||||
|
||||
Reference in New Issue
Block a user