Merge branch '2.0' into 2.x

Conflicts:
	php/elFinderVolumeLocalFileSystem.class.php
This commit is contained in:
nao-pon
2015-11-12 09:48:00 +09:00
+3 -2
View File
@@ -818,8 +818,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)) {
$this->setError(elFinder::ERROR_SAVE, $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)) {