[wp-trac] [WordPress Trac] #15575: ftp upgrade fails on some system due to slash in remote destination

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 25 02:33:28 UTC 2010


#15575: ftp upgrade fails on some system due to slash in remote destination
---------------------------------+-----------------------------
 Reporter:  lordandrei           |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Filesystem           |     Version:  3.0
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.2-early  |
---------------------------------+-----------------------------

Comment (by dd32):

 > Not sure about class-ftp.php and other functions like rmdir(). Should we
 use it there too?

 If the function will error out without having an untrailingslash'd then it
 should be added. `class-ftp.php` shouldn't be touched as `class-wp-
 filesystem-ftpsockets.php` is a wrapper for it.

 There are some strange cases with / and rm from memory, things like
 folder/file detecting issues, I wouldnt be surprised if that's one reason
 why a trailing slash is included on some of them.

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


More information about the wp-trac mailing list