WordPress.org

Make WordPress Core

Ticket #22138: 22138.patch

File 22138.patch, 500 bytes (added by SergeyBiryukov, 19 months ago)
  • wp-includes/formatting.php

     
    32433243 * @return string 
    32443244 */ 
    32453245function wp_basename( $path, $suffix = '' ) { 
    3246         return urldecode( basename( str_replace( '%2F', '/', urlencode( $path ) ), $suffix ) ); 
     3246        return urldecode( basename( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ), $suffix ) ); 
    32473247} 
    32483248 
    32493249/**