[Svn] r4492 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Fri Feb 4 12:58:19 CET 2011


Author: alec
Date: 2011-02-04 05:58:19 -0600 (Fri, 04 Feb 2011)
New Revision: 4492

Modified:
   trunk/roundcubemail/program/steps/mail/addcontact.inc
Log:
- Fix adding contacts: convert e-mail to ascii before format checking


Modified: trunk/roundcubemail/program/steps/mail/addcontact.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/addcontact.inc	2011-02-04 08:23:45 UTC (rev 4491)
+++ trunk/roundcubemail/program/steps/mail/addcontact.inc	2011-02-04 11:58:19 UTC (rev 4492)
@@ -41,7 +41,9 @@
       $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();
     }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list