Changeset 4507 in subversion


Ignore:
Timestamp:
Feb 9, 2011 2:19:56 AM (2 years ago)
Author:
alec
Message:
  • Fix deprecated split() usage in xmail and directadmin drivers (#1487769)
Location:
trunk/plugins/password
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/password/drivers/directadmin.php

    r2871 r4507  
    317317 
    318318        } 
    319          
    320         list($this->result_header,$this->result_body) = split("\r\n\r\n",$this->result,2); 
     319 
     320        list($this->result_header, $this->result_body) = explode("\r\n\r\n", $this->result, 2); 
    321321 
    322322        if ($this->bind_host) 
     
    379379            if ($asArray) 
    380380            { 
    381                 return split("\n",$this->fetch_body()); 
     381                return explode("\n", $this->fetch_body()); 
    382382            } 
    383383 
     
    439439    function fetch_header( $header = '' ) 
    440440    { 
    441         $array_headers = split("\r\n",$this->result_header); 
    442          
     441        $array_headers = explode("\r\n", $this->result_header); 
     442 
    443443        $array_return = array( 0 => $array_headers[0] ); 
    444444        unset($array_headers[0]); 
     
    446446        foreach ( $array_headers as $pair ) 
    447447        { 
    448             list($key,$value) = split(": ",$pair,2); 
     448            list($key,$value) = explode(": ", $pair, 2); 
    449449            $array_return[strtolower($key)] = $value; 
    450450        } 
  • trunk/plugins/password/drivers/xmail.php

    r4199 r4507  
    2121{ 
    2222    $rcmail = rcmail::get_instance(); 
    23     list($user,$domain) = split('@',$_SESSION['username']); 
     23    list($user,$domain) = explode('@', $_SESSION['username']); 
    2424 
    2525    $xmail = new XMail; 
  • trunk/plugins/password/package.xml

    r4472 r4507  
    3737- Fix extended error messages handling (#1487676) 
    3838- Fix double request when clicking on Password tab in Firefox 
     39- Fix deprecated split() usage in xmail and directadmin drivers (#1487769) 
    3940    </notes> 
    4041        <contents> 
Note: See TracChangeset for help on using the changeset viewer.