[Svn] r4507 - in trunk/plugins/password: . drivers

trac at roundcube.net trac at roundcube.net
Wed Feb 9 08:19:56 CET 2011


Author: alec
Date: 2011-02-09 01:19:56 -0600 (Wed, 09 Feb 2011)
New Revision: 4507

Modified:
   trunk/plugins/password/drivers/directadmin.php
   trunk/plugins/password/drivers/xmail.php
   trunk/plugins/password/package.xml
Log:
- Fix deprecated split() usage in xmail and directadmin drivers (#1487769) 


Modified: trunk/plugins/password/drivers/directadmin.php
===================================================================
--- trunk/plugins/password/drivers/directadmin.php	2011-02-08 09:17:24 UTC (rev 4506)
+++ trunk/plugins/password/drivers/directadmin.php	2011-02-09 07:19:56 UTC (rev 4507)
@@ -316,9 +316,9 @@
             }
 
         }
-        
-        list($this->result_header,$this->result_body) = split("\r\n\r\n",$this->result,2);
 
+        list($this->result_header, $this->result_body) = explode("\r\n\r\n", $this->result, 2);
+
         if ($this->bind_host)
         {
             socket_close($socket);
@@ -378,7 +378,7 @@
         {
             if ($asArray)
             {
-                return split("\n",$this->fetch_body());
+                return explode("\n", $this->fetch_body());
             }
 
             return $this->fetch_body();
@@ -438,14 +438,14 @@
      */
     function fetch_header( $header = '' )
     {
-        $array_headers = split("\r\n",$this->result_header);
-        
+        $array_headers = explode("\r\n", $this->result_header);
+
         $array_return = array( 0 => $array_headers[0] );
         unset($array_headers[0]);
 
         foreach ( $array_headers as $pair )
         {
-            list($key,$value) = split(": ",$pair,2);
+            list($key,$value) = explode(": ", $pair, 2);
             $array_return[strtolower($key)] = $value;
         }
 

Modified: trunk/plugins/password/drivers/xmail.php
===================================================================
--- trunk/plugins/password/drivers/xmail.php	2011-02-08 09:17:24 UTC (rev 4506)
+++ trunk/plugins/password/drivers/xmail.php	2011-02-09 07:19:56 UTC (rev 4507)
@@ -20,7 +20,7 @@
 function password_save($currpass, $newpass)
 {
     $rcmail = rcmail::get_instance();
-    list($user,$domain) = split('@',$_SESSION['username']);
+    list($user,$domain) = explode('@', $_SESSION['username']);
 
     $xmail = new XMail;
 

Modified: trunk/plugins/password/package.xml
===================================================================
--- trunk/plugins/password/package.xml	2011-02-08 09:17:24 UTC (rev 4506)
+++ trunk/plugins/password/package.xml	2011-02-09 07:19:56 UTC (rev 4507)
@@ -36,6 +36,7 @@
 - ldap/ldap_simple drivers: support Samba password change
 - Fix extended error messages handling (#1487676)
 - Fix double request when clicking on Password tab in Firefox
+- Fix deprecated split() usage in xmail and directadmin drivers (#1487769)
     </notes>
 	<contents>
 		<dir baseinstalldir="/" name="/">

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



More information about the Svn mailing list