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-ftpsockets.php

    r32656 r32923  
    450450                $struc['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $struc['name'] );
    451451
     452            // Add the Octal representation of the file permissions
     453            $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] );
     454
    452455            $ret[ $struc['name'] ] = $struc;
    453456        }
Note: See TracChangeset for help on using the changeset viewer.