mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Trying to share a symlink actually uses the link target instead
This commit is contained in:
parent
c508cd8731
commit
abc1ccc8f1
@ -442,6 +442,12 @@ class Sharing
|
||||
$path = 'vfs://default'.($path[0] == '/' ? '' : '/').$path;
|
||||
}
|
||||
|
||||
// We don't allow sharing links, share target instead
|
||||
if($target = Vfs::readlink($path))
|
||||
{
|
||||
$path = $target;
|
||||
}
|
||||
|
||||
if (($exists = ($stat = Vfs::stat($path)) && Vfs::check_access($path, Vfs::READABLE, $stat)))
|
||||
{
|
||||
$vfs_path = $path;
|
||||
|
Loading…
Reference in New Issue
Block a user