remove invalid -at- when occurring in full name, when adding address to email

This commit is contained in:
Klaus Leithoff 2010-12-06 15:02:56 +00:00
parent 517a99ce27
commit 23c02699a8

View File

@ -727,7 +727,7 @@ class addressbook_ui extends addressbook_bo
}
if($email)
{
$contact['n_fn'] = str_replace(',',' ',$contact['n_fn']);
$contact['n_fn'] = str_replace(array(',','@'),' ',$contact['n_fn']);
egw_framework::set_onload("addEmail('".addslashes(
$contact['n_fn'] ? $contact['n_fn'].' <'.trim($email).'>' : trim($email))."');");
//error_log(__METHOD__.__LINE__."addEmail('".addslashes(