WordPress 7.1.3

This commit is contained in:
2026-10-06 18:59:45 -06:00
parent e2c26b7f21
commit 5c09d6fa68
51 changed files with 1111 additions and 825 deletions
+4 -1
View File
@@ -1023,7 +1023,10 @@ class WP_Http {
// Strip all /path/../ out of the path.
while ( strpos( $path, '../' ) > 1 ) {
$path = preg_replace( '![^/]+/\.\./!', '', $path );
$path = preg_replace( '![^/]+/\.\./!', '', $path, -1, $segment_replacement_count );
if ( 0 === $segment_replacement_count ) {
break;
}
}
// Strip any final leading ../ from the path.