Remove comma from personal part since comma is preserved as address separator

This commit is contained in:
Hadi Nategh 2018-07-05 14:29:49 +02:00
parent 19b8c555ef
commit 03fd308d00
2 changed files with 4 additions and 1 deletions

View File

@ -852,6 +852,9 @@ app.classes.addressbook = AppJS.extend(
var personal = data.data.n_fn || '';
if (personal.match(/[^a-z0-9. -]/i)) personal = '"'+personal.replace(/"/, '\\"')+'"';
//remove comma in personal as it will confilict with mail content comma seperator in the process
personal = personal.replace(/,/g,'');
if(email_business)
{
emails.push((personal?personal+' <':'')+email_business+(personal?'>':''));

View File

@ -49,7 +49,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
match.push(index[0]);
match[index[0]] = index[1];
}
if (mailto[1]) mailto[1] = mailto[1].replace(/__AMPERSAND__/g, '&');
var content = {
to: mailto[1] || [],
cc: match['cc'] || [],