From 7ffdb2f0f493a8dd3029511ff7b0a26a89ec04ef Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 7 Dec 2010 13:57:16 +0000 Subject: [PATCH] filter @ from n_fn when trying to add the email via addressbook.email dialog --- addressbook/inc/class.addressbook_ui.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 890d39c9d6..dd92e17115 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -401,6 +401,11 @@ class addressbook_ui extends addressbook_bo function addEmail(email) { var to = 'to'; + splitter = email.indexOf(' <'); + namepart = email.substring(0,splitter); + emailpart = email.substring(splitter); + email = namepart.replace(/@/g,' ')+emailpart; + if (document.getElementById('exec[nm][to][cc]').checked == true) { to = 'cc';