Commit 341b54b
committed
Remove Filename Normalization in Delete Controller
Filenames are normalized when saving to the server via the uploader.
https://github.com/magento/magento2/blob/241271e8417c4264d44682169aa2032e955d6942/lib/internal/Magento/Framework/File/Uploader.php#L391-L407
This normalization was added to the admin delete controller in 2.2.0
09d662e#diff-7c65d1bd4c41efed1d26ddf72f15aa91R62
This change prevents admin users from deleting CMS images not conforming to the
uploader normalization. For instance an image on the server named ` - .jpg`
would have it's name normalized to ` _ .jpg` in the delete controller which
causes the deletion to fail.
Fixes magento/adobe-stock-integration#8891 parent f9a8884 commit 341b54b
File tree
2 files changed
+25
-4
lines changed- app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images
- dev/tests/integration/testsuite/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images
2 files changed
+25
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
| 80 | + | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | | - | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
89 | | - | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
94 | 115 | | |
95 | 116 | | |
96 | 117 | | |
| |||
0 commit comments