mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +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;
|
$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)))
|
if (($exists = ($stat = Vfs::stat($path)) && Vfs::check_access($path, Vfs::READABLE, $stat)))
|
||||||
{
|
{
|
||||||
$vfs_path = $path;
|
$vfs_path = $path;
|
||||||
|
Loading…
Reference in New Issue
Block a user