mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Make sure we get correct path when sharing from a share
This commit is contained in:
parent
a5b232d129
commit
17ba77d369
@ -224,6 +224,13 @@ class Sharing extends \EGroupware\Api\Sharing
|
||||
|
||||
if (($exists = ($stat = Vfs::stat($path)) && Vfs::check_access($path, Vfs::READABLE, $stat)))
|
||||
{
|
||||
// Make sure we get the correct path if sharing from a share
|
||||
if(isset($GLOBALS['egw']->sharing) && $exists)
|
||||
{
|
||||
$resolved_stat = Vfs::parse_url($stat['url']);
|
||||
$path = 'vfs://default'. $resolved_stat['path'];
|
||||
}
|
||||
|
||||
$vfs_path = $path;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user