Changeset 6914

Show
Ignore:
Timestamp:
02/19/08 08:22:42 (6 months ago)
Author:
ryan
Message:

Fix ftpext dirlist for ftp servers that return 8 fields instead of 9. see #5586

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/class-wp-filesystem-ftpext.php

    r6785 r6914  
    365365            $struc = array(); 
    366366            $current = preg_split("/[\s]+/",$line,9); 
    367             $struc['name']      = str_replace('//','',$current[8]); 
     367            $name_num = count($current) - 1; 
     368            $struc['name']      = str_replace('//','',$current[$name_num]); 
    368369 
    369370            if( '.' == $struc['name'][0] && !$incdot) 
     
    399400            $ret[$struc['name']] = $struc; 
    400401        } 
     402        return $ret; 
    401403    } 
    402404    function __destruct(){