[wp-trac] [WordPress Trac] #17846: WP_Filesystem_FTPext::dirlist() doesn't handle symbolic links properly

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 1 22:10:59 UTC 2011


#17846: WP_Filesystem_FTPext::dirlist() doesn't handle symbolic links properly
--------------------------+------------------------------
 Reporter:  Oded          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Filesystem    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by kurtpayne):

 I have tested this on Windows + FileZilla Server (wasn't able to create
 symlinks here) and CentOS + vsftpd (with symlinks of varied and complex
 names).

 The `WP_Filesystem_FTPext::dirlist()` method uses
 [http://php.net/ftp_rawlist ftp_rawlist()] to get a file listing.  There
 is no standard format for this listing, so WP can't be assured that
 symlinks will be represented in `a -> b` format.  But the regex is
 targeted for that format and should skip over any new formats.  It should
 be a safe fix.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17846#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list