Ticket #35996: wp_normalize_path-patch.diff
File wp_normalize_path-patch.diff, 477 bytes (added by , 8 years ago) |
---|
-
wp-includes/functions.php
diff --git a/wp-includes/functions.php b/wp-includes/functions.php index bcd56f7..b08e2a8 100644
a b function path_join( $base, $path ) { 1697 1697 */ 1698 1698 function wp_normalize_path( $path ) { 1699 1699 $path = str_replace( '\\', '/', $path ); 1700 $path = preg_replace( '| /+|','/', $path );1700 $path = preg_replace( '|(?<=.)/+|','/', $path ); 1701 1701 if ( ':' === substr( $path, 1, 1 ) ) { 1702 1702 $path = ucfirst( $path ); 1703 1703 }