Make WordPress Core


Ignore:
Timestamp:
02/19/2008 08:22:42 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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(){
Note: See TracChangeset for help on using the changeset viewer.