This commit is contained in:
Dmitry (dio) Levashov
2012-06-24 15:41:29 +04:00
parent da71308096
commit d1d0582fb1
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -696,7 +696,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
foreach (scandir($path) as $name) {
if ($name != '.' && $name != '..') {
$p = $path.DIRECTORY_SEPARATOR.$name;
if (is_link($p)) {
if (is_link($p) || !$this->nameAccepted($name)) {
return true;
}
if (is_dir($p) && $this->_findSymlinks($p)) {
@@ -707,6 +707,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
}
} else {
$this->archiveSize += filesize($path);
}
@@ -741,7 +742,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
// extract in quarantine
$this->_unpack($archive, $arc);
@unlink($archive);
unlink($archive);
// get files list
$ls = array();