Make WordPress Core

Changeset 13850


Ignore:
Timestamp:
03/28/2010 01:07:03 AM (16 years ago)
Author:
dd32
Message:

Attempt to work around Mac FTP Server security implications of using '-a' in FTP. Props eoinomurchu. See #12232

File:
1 edited

Legend:

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

    r13770 r13850  
    333333                }
    334334
    335                 $list = @ftp_rawlist($this->link, '-a ' . $path, false);
     335                $pwd = @ftp_pwd();
     336                $chdir = @ftp_chdir($this->link, $path);
     337                $list = @ftp_rawlist($this->link, '-a', false);
     338                @ftp_chdir($this->link, $pwd);
    336339
    337340                if ( empty($list) ) // Empty array = non-existent folder (real folder will show . at least)
Note: See TracChangeset for help on using the changeset viewer.