diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-04 11:58:19 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-04 11:58:19 +0000 |
| commit | 0cce655c2615b77666c2c64f271730f8c50c5ae4 (patch) | |
| tree | af9951e06a6af4b63bb2757b252c4c9b08a97ca0 | |
| parent | 55714c4a5fb709c2dd08e8684c1a9336f3f0b20e (diff) | |
- Fix adding contacts: convert e-mail to ascii before format checking
git-svn-id: https://svn.roundcube.net/trunk@4492 208e9e7b-5314-0410-a742-e7e81cd9613c
| -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 ba9a44aa3..03adcbe21 100644 --- a/roundcubemail/program/steps/mail/addcontact.inc +++ b/roundcubemail/program/steps/mail/addcontact.inc @@ -41,7 +41,9 @@ if (!empty($_POST['_address']) && is_object($CONTACTS)) $OUTPUT->show_message('errorsavingcontact', 'error'); $OUTPUT->send(); } - else if (!check_email($contact['email'], false)) { + + $email = rcube_idn_to_ascii($contact['email']); + if (!check_email($email, false)) { $OUTPUT->show_message('emailformaterror', 'error', array('email' => $contact['email'])); $OUTPUT->send(); } |
