Make WordPress Core

Changeset 58499 for branches/4.3


Ignore:
Timestamp:
06/24/2024 03:51:00 PM (12 months ago)
Author:
audrasjb
Message:

Editor: Fix Path Traversal issue on Windows in Template-Part Block.

Merges [58470] to the 4.3 branch.
Props xknown, jorbin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/src/wp-includes/functions.php

    r54557 r58499  
    38483848 */
    38493849function validate_file( $file, $allowed_files = '' ) {
     3850    // Normalize path for Windows servers
     3851    $file = wp_normalize_path( $file );
     3852
    38503853    if ( false !== strpos( $file, '..' ) )
    38513854        return 1;
Note: See TracChangeset for help on using the changeset viewer.