[VD:FTP] fix #1571 cause infinite loop during auto-sync of the volume root

This commit is contained in:
nao-pon
2016-08-05 11:14:34 +09:00
parent 98e8b53217
commit a5fff4bf8a
+4 -4
View File
@@ -688,20 +688,20 @@ class elFinderVolumeFTP extends elFinderVolumeDriver {
} else {
$this->convEncIn();
}
if (!$this->MLSTsupprt) {
if ($path == $this->root && ($path === $this->systemRoot || ! $this->isMyReload())) {
if (! $this->MLSTsupprt) {
if ($path === $this->root) {
$res = array(
'name' => $this->root,
'mime' => 'directory',
'dirs' => $this->_subdirs($path)
);
if ($this->isMyReload()) {
$ts = 0;
$ts = 0;
foreach (ftp_rawlist($this->connect, $path) as $str) {
if (($stat = $this->parseRaw($str, $path))) {
$ts = max($ts, $stat['ts']);
}
}
}
if ($ts) {
$res['ts'] = $ts;
}