[Svn] r4485 - in trunk/plugins: managesieve new_user_identity squirrelmail_usercopy virtuser_file virtuser_query

trac at roundcube.net trac at roundcube.net
Thu Feb 3 14:58:19 CET 2011


Author: alec
Date: 2011-02-03 07:58:19 -0600 (Thu, 03 Feb 2011)
New Revision: 4485

Modified:
   trunk/plugins/managesieve/managesieve.php
   trunk/plugins/new_user_identity/new_user_identity.php
   trunk/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
   trunk/plugins/virtuser_file/virtuser_file.php
   trunk/plugins/virtuser_query/virtuser_query.php
Log:
- Fix IDNA support when IDN/INTL modules are in use (#1487742)


Modified: trunk/plugins/managesieve/managesieve.php
===================================================================
--- trunk/plugins/managesieve/managesieve.php	2011-02-03 13:58:07 UTC (rev 4484)
+++ trunk/plugins/managesieve/managesieve.php	2011-02-03 13:58:19 UTC (rev 4485)
@@ -66,7 +66,7 @@
         $host = rcube_parse_host($this->rc->config->get('managesieve_host', 'localhost'));
         $port = $this->rc->config->get('managesieve_port', 2000);
 
-        $host = idn_to_ascii($host);
+        $host = rcube_idn_to_ascii($host);
 
         // try to connect to managesieve server and to fetch the script
         $this->sieve = new rcube_sieve($_SESSION['username'],

Modified: trunk/plugins/new_user_identity/new_user_identity.php
===================================================================
--- trunk/plugins/new_user_identity/new_user_identity.php	2011-02-03 13:58:07 UTC (rev 4484)
+++ trunk/plugins/new_user_identity/new_user_identity.php	2011-02-03 13:58:19 UTC (rev 4485)
@@ -40,7 +40,7 @@
             if (count($results->records) == 1) {
                 $args['user_name'] = $results->records[0]['name'];
                 if (!$args['user_email'] && strpos($results->records[0]['email'], '@')) {
-                    $args['user_email'] = idn_to_ascii($results->records[0]['email']);
+                    $args['user_email'] = rcube_idn_to_ascii($results->records[0]['email']);
                 }
             }
         }

Modified: trunk/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
===================================================================
--- trunk/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php	2011-02-03 13:58:07 UTC (rev 4484)
+++ trunk/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php	2011-02-03 13:58:19 UTC (rev 4485)
@@ -73,8 +73,8 @@
 				foreach ($this->abook as $rec) {
 				    // #1487096 handle multi-address and/or too long items
 				    $rec['email'] = array_shift(explode(';', $rec['email']));
-                    if (check_email(idn_to_ascii($rec['email']))) {
-                        $rec['email'] = idn_to_utf8($rec['email']);
+                    if (check_email(rcube_idn_to_ascii($rec['email']))) {
+                        $rec['email'] = rcube_idn_to_utf8($rec['email']);
     					$contacts->insert($rec, true);
 			        }
 			    }

Modified: trunk/plugins/virtuser_file/virtuser_file.php
===================================================================
--- trunk/plugins/virtuser_file/virtuser_file.php	2011-02-03 13:58:07 UTC (rev 4484)
+++ trunk/plugins/virtuser_file/virtuser_file.php	2011-02-03 13:58:19 UTC (rev 4485)
@@ -40,7 +40,7 @@
 	        $arr = preg_split('/\s+/', $r[$i]);
 
 	        if (count($arr) > 0 && strpos($arr[0], '@')) {
-		        $result[] = idn_to_ascii(trim(str_replace('\\@', '@', $arr[0])));
+		        $result[] = rcube_idn_to_ascii(trim(str_replace('\\@', '@', $arr[0])));
 
 		        if ($p['first']) {
 		            $p['email'] = $result[0];

Modified: trunk/plugins/virtuser_query/virtuser_query.php
===================================================================
--- trunk/plugins/virtuser_query/virtuser_query.php	2011-02-03 13:58:07 UTC (rev 4484)
+++ trunk/plugins/virtuser_query/virtuser_query.php	2011-02-03 13:58:19 UTC (rev 4485)
@@ -58,11 +58,11 @@
 	        if (strpos($sql_arr[0], '@')) {
 		        if ($p['extended'] && count($sql_arr) > 1) {
 		            $result[] = array(
-			            'email' 	    => idn_to_ascii($sql_arr[0]),
+			            'email' 	    => rcube_idn_to_ascii($sql_arr[0]),
             			'name' 		    => $sql_arr[1],
 			            'organization'  => $sql_arr[2],
-            			'reply-to' 	    => idn_to_ascii($sql_arr[3]),
-			            'bcc' 		    => idn_to_ascii($sql_arr[4]),
+            			'reply-to' 	    => rcube_idn_to_ascii($sql_arr[3]),
+			            'bcc' 		    => rcube_idn_to_ascii($sql_arr[4]),
         			    'signature' 	=> $sql_arr[5],
 		            	'html_signature' => (int)$sql_arr[6],
     		        );

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



More information about the Svn mailing list