Changeset 58808
- Timestamp:
- 07/25/2024 04:33:50 PM (3 months ago)
- Location:
- branches/6.5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.5
-
branches/6.5/src/wp-includes/functions.php
r58474 r58808 6193 6193 } 6194 6194 6195 // Normalize path for Windows servers 6195 // Normalize path for Windows servers. 6196 6196 $file = wp_normalize_path( $file ); 6197 // Normalize path for $allowed_files as well so it's an apples to apples comparison. 6198 $allowed_files = array_map( 'wp_normalize_path', $allowed_files ); 6197 6199 6198 6200 // `../` on its own is not allowed: -
branches/6.5/tests/phpunit/tests/functions.php
r58050 r58808 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.