Skip to content

Commit

Permalink
fix(mail): Fix issue where mailto: links are badly formatted when htm…
Browse files Browse the repository at this point in the history
…l composing
  • Loading branch information
WoodySlum committed Aug 16, 2024
1 parent b602b2b commit 86446a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UI/WebServerResources/js/Mailer/Message.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '=([^&]+)');
Expand Down

0 comments on commit 86446a0

Please sign in to comment.