|
|
|
|
@ -1883,7 +1883,15 @@ class View {
|
|
|
|
|
}, $providers));
|
|
|
|
|
|
|
|
|
|
foreach ($shares as $share) {
|
|
|
|
|
$sharedPath = $share->getNode()->getPath();
|
|
|
|
|
try {
|
|
|
|
|
$sharedPath = $share->getNode()->getPath();
|
|
|
|
|
} catch (NotFoundException $e) {
|
|
|
|
|
// node is not found, ignoring
|
|
|
|
|
$this->logger->debug(
|
|
|
|
|
'Could not find the node linked to a share',
|
|
|
|
|
['app' => 'files', 'exception' => $e]);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
|
|
|
|
|
$this->logger->debug(
|
|
|
|
|
'It is not allowed to move one mount point into a shared folder',
|
|
|
|
|
|