Ticket #59729: path_is_absolute.patch
File path_is_absolute.patch, 417 bytes (added by , 19 months ago) |
---|
-
src/wp-includes/functions.php
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index cb490ee176..c560854257 100644
a b function path_is_absolute( $path ) { 2125 2125 return true; 2126 2126 } 2127 2127 2128 if ( strlen( $path ) === 0 || '.' === $path[0] ) {2128 if ( ! is_string( $path ) || strlen( $path ) === 0 || '.' === $path[0] ) { 2129 2129 return false; 2130 2130 } 2131 2131