mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #5152 from jonom/filesync-fix-3.2
FIX file sync removes folders with dot in name
This commit is contained in:
commit
661e5ca03a
@ -165,6 +165,7 @@ class Folder extends File {
|
||||
|
||||
// Check allowed extensions, unless admin users are allowed to bypass these exclusions
|
||||
if($checkExtensions
|
||||
&& !is_dir($baseDir . $actualChild)
|
||||
&& ($extension = self::get_file_extension($actualChild))
|
||||
&& !in_array(strtolower($extension), $allowedExtensions)
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user