mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
1ce279ec9d
When a user renames a file to "__test.txt" (two underscores or more), then FileNameFilter will only remove the very first underscore from the filename. This is not sufficient, as any number of underscores in the filename will be problematic when Filesystem::sync() is called, it will remove that File record thinking it's an internal file. This fixes it so any number of underscores are stripped out at the start of the filename. |
||
---|---|---|
.. | ||
File.php | ||
FileFinder.php | ||
FileNameFilter.php | ||
Filesystem.php | ||
Folder.php | ||
GD.php | ||
Upload.php |