Ticket #48289: 48289.3.diff
File 48289.3.diff, 457 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/functions.php
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 979536f751..d0cfa6a8db 100644
a b function path_is_absolute( $path ) { 1988 1988 } 1989 1989 1990 1990 // Windows allows absolute paths like this. 1991 if ( preg_match( '#^[a-zA-Z]:\\\\#', $path ) ) {1991 if ( '/' !== DIRECTORY_SEPARATOR && preg_match ( '~\A[A-Z]:(?![^/\\\\])~i', $path ) ) { 1992 1992 return true; 1993 1993 } 1994 1994