FIX file sync removes folders with dot in name

Prevent file extension validation being applied to folders during sync (fixes #4746)
This commit is contained in:
Jonathon Menz 2016-03-07 11:30:13 -08:00
parent f35786de0a
commit 86b1c8fc28

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