summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/steps/mail/addcontact.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/addcontact.inc b/program/steps/mail/addcontact.inc
index ba9a44aa3..03adcbe21 100644
--- a/program/steps/mail/addcontact.inc
+++ b/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();
}