Make WordPress Core


Ignore:
Timestamp:
06/24/2015 04:48:18 AM (10 years ago)
Author:
dd32
Message:

WP Filesystem: Correctly parse the permissions field in the directory listings, and actually set it in FTP environments
Props mnelson4 for initial patch.
Fixes #29548

File:
1 edited

Legend:

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

    r32656 r32923  
    385385     * @staticvar bool $is_windows
    386386     * @param string $line
    387      * @return string
     387     * @return array
    388388     */
    389389    public function parselisting($line) {
     
    427427                $b['type'] = 'f';
    428428            $b['perms'] = $lucifer[0];
     429            $b['permsn'] = $this->getnumchmodfromh( $b['perms'] );
    429430            $b['number'] = $lucifer[1];
    430431            $b['owner'] = $lucifer[2];
Note: See TracChangeset for help on using the changeset viewer.