Replace & with placeholder according to mailto string processing

This commit is contained in:
Hadi Nategh 2018-07-05 11:29:46 +02:00
parent 9317cdd216
commit 19b8c555ef

View File

@ -864,14 +864,14 @@ app.classes.addressbook = AppJS.extend(
switch (action.id) switch (action.id)
{ {
case "add_to_to": case "add_to_to":
egw.open_link('mailto:' + emails.join(',')); egw.open_link('mailto:' + emails.join(',').replace(/&/g, '__AMPERSAND__'));
break; break;
case "add_to_cc": case "add_to_cc":
egw.open_link('mailto:' + '?cc=' + emails.join(',')); egw.open_link('mailto:' + '?cc=' + emails.join(',').replace(/&/g, '__AMPERSAND__'));
//egw.mailto('mailto:'); //egw.mailto('mailto:');
break; break;
case "add_to_bcc": case "add_to_bcc":
egw.open_link('mailto:' + '?bcc=' + emails.join(',')); egw.open_link('mailto:' + '?bcc=' + emails.join(',').replace(/&/g, '__AMPERSAND__'));
break; break;
} }