Changeset 4492 in subversion


Ignore:
Timestamp:
Feb 4, 2011 6:58:19 AM (2 years ago)
Author:
alec
Message:
  • Fix adding contacts: convert e-mail to ascii before format checking
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/addcontact.inc

    r4484 r4492  
    4242      $OUTPUT->send(); 
    4343    } 
    44     else if (!check_email($contact['email'], false)) { 
     44     
     45    $email = rcube_idn_to_ascii($contact['email']); 
     46    if (!check_email($email, false)) { 
    4547      $OUTPUT->show_message('emailformaterror', 'error', array('email' => $contact['email'])); 
    4648      $OUTPUT->send(); 
Note: See TracChangeset for help on using the changeset viewer.