[VD:LocalFileSystem] add symbolic link check on _save()

This commit is contained in:
nao-pon
2016-03-23 17:25:10 +09:00
parent d11b9c33de
commit 27ba0bb6df
+6 -1
View File
@@ -885,7 +885,12 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
return false;
}
}
if (is_link($path)) {
unlink($path);
return $this->setError(elFinder::ERROR_SAVE, $name);
}
@chmod($path, $this->options['fileMode']);
clearstatcache();
return $path;