- Timestamp:
- 10/11/2023 07:03:04 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r56548 r56825 217 217 } 218 218 } elseif ( 'direct' === $this->method ) { 219 $folder = str_replace( '\\', '/', $folder ); // Windows path saniti sation.219 $folder = str_replace( '\\', '/', $folder ); // Windows path sanitization. 220 220 221 221 return trailingslashit( $folder ); … … 223 223 224 224 $folder = preg_replace( '|^([a-z]{1}):|i', '', $folder ); // Strip out Windows drive letter if it's there. 225 $folder = str_replace( '\\', '/', $folder ); // Windows path saniti sation.225 $folder = str_replace( '\\', '/', $folder ); // Windows path sanitization. 226 226 227 227 if ( isset( $this->cache[ $folder ] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.