Merge pull request #5152 from jonom/filesync-fix-3.2

FIX file sync removes folders with dot in name
This commit is contained in:
Damian Mooyman 2016-03-08 09:57:16 +13:00
commit 661e5ca03a

View File

@ -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)
) {