Make WordPress Core

Timestamp:
06/24/2024 03:23:25 PM (3 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/formatting.php

    r55774 r58483  
    46854685 *
    46864686 * @since 2.5.0
     4687
    46874688 *
    46884689 * @param string $tag_name
     
    46904691 */
    46914692function tag_escape( $tag_name ) {
    4692     $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9_:]/', '', $tag_name ) );
     4693    $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9_:]/', '', $tag_name ) );
    46934694    /**
    46944695     * Filters a string cleaned and escaped for output as an HTML tag.
Note: See TracChangeset for help on using the changeset viewer.