Commit 366c8e5
committed
Filesystem: Normalize allowed_files so comparison is apples to apples.
In [58470] a change was made to normalize the filename in validate_file, however this leads to instances where the list of files that are allowed aren't normalized such as in the theme editor. By normalizing the array, the comparison is apples to apples.
Reviewed by hellofromTonya.
Merges 58570 to the 6.5 branch.
Fixes #61488.
Props jorbin, hellofromtonya, swissspidy, misulicus, script2see, Presskopp, audrasjb, peterwilsoncc, siliconforks, littler.chicken, paulkevan,
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58808 602fd350-edb4-49c9-b593-d223f7449a821 parent c26d2a3 commit 366c8e5
File tree
2 files changed
+11
-1
lines changed- src/wp-includes
- tests/phpunit/tests
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6192 | 6192 | | |
6193 | 6193 | | |
6194 | 6194 | | |
6195 | | - | |
| 6195 | + | |
6196 | 6196 | | |
| 6197 | + | |
| 6198 | + | |
6197 | 6199 | | |
6198 | 6200 | | |
6199 | 6201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1793 | 1793 | | |
1794 | 1794 | | |
1795 | 1795 | | |
| 1796 | + | |
1796 | 1797 | | |
1797 | 1798 | | |
1798 | 1799 | | |
| |||
1913 | 1914 | | |
1914 | 1915 | | |
1915 | 1916 | | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
1916 | 1924 | | |
1917 | 1925 | | |
1918 | 1926 | | |
| |||
0 commit comments