Make WordPress Core

Changeset 35476


Ignore:
Timestamp:
10/31/2015 08:16:32 PM (10 years ago)
Author:
wonderboymusic
Message:

Filesystem: in WP_Filesystem_FTPext::parselisting(), check for the existence of $b['islink'] before using it.

Props jesin.
Fixes #27975.

File:
1 edited

Legend:

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

    r34733 r35476  
    521521
    522522        // Replace symlinks formatted as "source -> target" with just the source name
    523         if ( $b['islink'] )
     523        if ( isset( $b['islink'] ) && $b['islink'] ) {
    524524            $b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] );
     525        }
    525526
    526527        return $b;
Note: See TracChangeset for help on using the changeset viewer.