Changeset 58570
- Timestamp:
- 06/25/2024 02:17:48 PM (3 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r58470 r58570 6200 6200 } 6201 6201 6202 // Normalize path for Windows servers 6202 // Normalize path for Windows servers. 6203 6203 $file = wp_normalize_path( $file ); 6204 // Normalize path for $allowed_files as well so it's an apples to apples comparison. 6205 $allowed_files = array_map( 'wp_normalize_path', $allowed_files ); 6204 6206 6205 6207 // `../` on its own is not allowed: -
trunk/tests/phpunit/tests/functions.php
r58049 r58570 1794 1794 * 1795 1795 * @ticket 42016 1796 * @ticket 61488 1796 1797 * @dataProvider data_validate_file 1797 1798 * … … 1912 1913 array( 'C:/WINDOWS/system32' ), 1913 1914 2, 1915 ), 1916 1917 // Windows Path with allowed file 1918 array( 1919 'Apache24\htdocs\wordpress/wp-content/themes/twentyten/style.css', 1920 array( 'Apache24\htdocs\wordpress/wp-content/themes/twentyten/style.css' ), 1921 0, 1914 1922 ), 1915 1923
Note: See TracChangeset
for help on using the changeset viewer.