Changeset 54712 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/28/2022 03:16:29 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r54663 r54712 2080 2080 * 2081 2081 * @since 2.5.0 2082 * @since 6.1.0 Allows normalized Windows paths (forward slashes).2083 2082 * 2084 2083 * @param string $path File path. … … 2108 2107 // Windows allows absolute paths like this. 2109 2108 if ( preg_match( '#^[a-zA-Z]:\\\\#', $path ) ) { 2110 return true;2111 }2112 2113 // Normalized Windows paths for local filesystem and network shares (forward slashes).2114 if ( preg_match( '#(^[a-zA-Z]+:/|^//[\w!@\#\$%\^\(\)\-\'{}\.~]{1,15})#', $path ) ) {2115 2109 return true; 2116 2110 }
Note: See TracChangeset
for help on using the changeset viewer.