Changeset 53934 for trunk/src/wp-includes/functions.php
- Timestamp:
- 08/23/2022 07:57:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r53887 r53934 2084 2084 * 2085 2085 * @since 2.5.0 2086 * @since 6.1.0 Allows normalized Windows paths (forward slashes). 2086 2087 * 2087 2088 * @param string $path File path. … … 2111 2112 // Windows allows absolute paths like this. 2112 2113 if ( preg_match( '#^[a-zA-Z]:\\\\#', $path ) ) { 2114 return true; 2115 } 2116 2117 // Normalized Windows paths for local filesystem and network shares (forward slashes). 2118 if ( preg_match( '#(^[a-zA-Z]+:/|^//[\w!@\#\$%\^\(\)\-\'{}\.~]{1,15})#', $path ) ) { 2113 2119 return true; 2114 2120 }
Note: See TracChangeset
for help on using the changeset viewer.