Make WordPress Core


Ignore:
Timestamp:
06/24/2024 03:23:25 PM (7 months ago)
Author:
audrasjb
Message:

Grouped Backports to the 5.9 branch.

  • Editor: Fix Path Traversal issue on Windows in Template-Part Block.
  • Editor: Sanitize Template Part HTML tag on save.

Merges [58470], [58471], [58472] and [58473] to the 5.9 branch.
Props xknown, peterwilsoncc, jorbin, bernhard-reiter, azaozz.

File:
1 edited

Legend:

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

    r54545 r58483  
    59055905    }
    59065906
     5907    // Normalize path for Windows servers
     5908    $file = wp_normalize_path( $file );
     5909
    59075910    // `../` on its own is not allowed:
    59085911    if ( '../' === $file ) {
Note: See TracChangeset for help on using the changeset viewer.