Changeset 4010 in subversion


Ignore:
Timestamp:
Sep 29, 2010 8:36:53 AM (3 years ago)
Author:
alec
Message:
  • Add Internationalized Domain Name (IDNA) support (#1483894)
Location:
trunk/plugins
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/managesieve/managesieve.php

    r3939 r4010  
    6565        $host = rcube_parse_host($this->rc->config->get('managesieve_host', 'localhost')); 
    6666        $port = $this->rc->config->get('managesieve_port', 2000); 
     67 
     68        $host = idn_to_ascii($host); 
    6769 
    6870        // try to connect to managesieve server and to fetch the script 
  • trunk/plugins/new_user_dialog/new_user_dialog.php

    r3841 r4010  
    6363        'type' => 'text', 
    6464        'name' => '_email', 
    65         'value' => $identity['email'], 
     65        'value' => idn_to_utf8($identity['email']), 
    6666        'disabled' => ($identities_level == 1 || $identities_level == 3) 
    6767      ))); 
     
    112112    if ($identities_level == 1 || $identities_level == 3) 
    113113      $save_data['email'] = $identity['email']; 
     114    else 
     115      $save_data['email'] = idn_to_ascii($save_data['email']); 
    114116 
    115117    // save data if not empty 
  • trunk/plugins/new_user_identity/new_user_identity.php

    r3841 r4010  
    4141                $args['user_name'] = $results->records[0]['name']; 
    4242                if (!$args['user_email'] && strpos($results->records[0]['email'], '@')) { 
    43                     $args['user_email'] = $results->records[0]['email']; 
     43                    $args['user_email'] = idn_to_ascii($results->records[0]['email']); 
    4444                } 
    4545            } 
  • trunk/plugins/virtuser_file/virtuser_file.php

    r3560 r4010  
    4141 
    4242                if (count($arr) > 0 && strpos($arr[0], '@')) { 
    43                         $result[] = trim(str_replace('\\@', '@', $arr[0])); 
     43                        $result[] = idn_to_ascii(trim(str_replace('\\@', '@', $arr[0]))); 
    4444 
    4545                        if ($p['first']) { 
  • trunk/plugins/virtuser_query/virtuser_query.php

    r3548 r4010  
    4545                        if ($p['extended'] && count($sql_arr) > 1) { 
    4646                            $result[] = array( 
    47                                     'email'         => $sql_arr[0], 
     47                                    'email'         => idn_to_ascii($sql_arr[0]), 
    4848                                'name'              => $sql_arr[1], 
    4949                                    'organization'  => $sql_arr[2], 
    50                                 'reply-to'          => $sql_arr[3], 
    51                                     'bcc'                   => $sql_arr[4], 
     50                                'reply-to'          => idn_to_ascii($sql_arr[3]), 
     51                                    'bcc'                   => idn_to_ascii($sql_arr[4]), 
    5252                                    'signature'         => $sql_arr[5], 
    5353                                'html_signature' => (int)$sql_arr[6], 
Note: See TracChangeset for help on using the changeset viewer.