diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-29 12:36:28 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-29 12:36:28 +0000 |
| commit | a1ab3314f33bb69b9f40dd700ea769bbeffc8a5d (patch) | |
| tree | b7ab2ad2ce8fd5ea4e237d916adaeb5d105ee3e7 /roundcubemail/program/steps/mail/addcontact.inc | |
| parent | e72c3403074be1e7664db46f8779b5f640318b3c (diff) | |
- Add Internationalized Domain Name (IDNA) support (#1483894)
git-svn-id: https://svn.roundcube.net/trunk@4009 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/addcontact.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/addcontact.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/addcontact.inc b/roundcubemail/program/steps/mail/addcontact.inc index 128cb4ea3..7a2b69e3d 100644 --- a/roundcubemail/program/steps/mail/addcontact.inc +++ b/roundcubemail/program/steps/mail/addcontact.inc @@ -36,7 +36,9 @@ if (!empty($_POST['_address']) && is_object($CONTACTS)) 'email' => $contact_arr[1]['mailto'], 'name' => $contact_arr[1]['name'] ); - + + $contact['email'] = idn_to_utf8($contact['email']); + // use email address part for name if (empty($contact['name']) || $contact['name'] == $contact['email']) $contact['name'] = ucfirst(preg_replace('/[\.\-]/', ' ', substr($contact['email'], 0, strpos($contact['email'], '@')))); |
