diff options
author | alecpl <alec@alec.pl> | 2011-02-04 11:58:19 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-02-04 11:58:19 +0000 |
commit | e18d992ee1a37bf76e2ef5a0d136df8fe591a914 (patch) | |
tree | 0d56021c924f3a53347674b7565307e0244ae159 /program/steps | |
parent | 89d19c4e6133fe96b2c43415c7d841e78c7c1b7a (diff) |
- Fix adding contacts: convert e-mail to ascii before format checking
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/addcontact.inc | 4 |
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(); } |