src build elFinder-2.0-65e193f

This commit is contained in:
nao-pon
2015-11-12 09:50:12 +09:00
parent c5a5d75451
commit 4cb7bb3bff
5 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -655,7 +655,9 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
foreach (scandir($path) as $name) {
if ($name != '.' && $name != '..') {
$p = $path.DIRECTORY_SEPARATOR.$name;
if (is_link($p) || !$this->nameAccepted($name)) {
if (is_link($p) || !$this->nameAccepted($name)
||
(($mimeByName = elFinderVolumeDriver::mimetypeInternalDetect($name)) && $mimeByName !== 'unknown' && !$this->allowPutMime($mimeByName))) {
return true;
}
if (is_dir($p) && $this->_findSymlinks($p)) {