WordPress.org

Make WordPress Core

Changeset 15156


Ignore:
Timestamp:
06/07/10 11:19:51 (4 years ago)
Author:
dd32
Message:

Do not check to see if parents of folders outside of the Destination folder exist within the Archive extractors, unzip_file() will take care of that area. Fixes #13741

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r15130 r15156  
    607607        if ( untrailingslashit($to) == $dir ) // Skip over the working directory, We know this exists (or will exist) 
    608608            continue; 
     609        if ( strpos($dir, $to) === false ) // If the directory is not within the working directory, Skip it 
     610            continue; 
    609611 
    610612        $parent_folder = dirname($dir); 
     
    685687        // Check the parent folders of the folders all exist within the creation array. 
    686688        if ( untrailingslashit($to) == $dir ) // Skip over the working directory, We know this exists (or will exist) 
     689            continue; 
     690        if ( strpos($dir, $to) === false ) // If the directory is not within the working directory, Skip it 
    687691            continue; 
    688692 
Note: See TracChangeset for help on using the changeset viewer.