mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LocalFileSystem] add symbolic link check on _save()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user