close

Make WordPress Core

Changeset 61935


Ignore:
Timestamp:
03/11/2026 01:32:39 PM (2 days ago)
Author:
johnbillion
Message:

Filesystem API: Don't attempt to extract invalid files from a zip when using the PclZip library.

This brings the handling inline with the same guard condition in _unzip_file_ziparchive() with ZipArchive.

Merges [61887] into the 6.9 branch.

Props johnbillion, peterwilsoncc, xknown.

Location:
branches/6.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9

  • branches/6.9/src/wp-admin/includes/file.php

    r60309 r61935  
    19021902        }
    19031903
     1904        // Don't extract invalid files:
     1905        if ( 0 !== validate_file( $file['filename'] ) ) {
     1906            continue;
     1907        }
     1908
    19041909        $uncompressed_size += $file['size'];
    19051910
Note: See TracChangeset for help on using the changeset viewer.