got rename and put relativ working

This commit is contained in:
Ralf Becker 2020-09-28 20:14:20 +02:00
parent 4520dc2656
commit 819dc8be7c

View File

@ -338,7 +338,7 @@ class Sharing extends \EGroupware\Api\Sharing
{
if(parse_url($path, PHP_URL_SCHEME) !== 'vfs')
{
$path = 'vfs://default'.($path[0] == '/' ? '' : '/').$path;
$path = Vfs::PREFIX.Vfs::parse_url($path, PHP_URL_PATH);
}
// We don't allow sharing paths that contain links, resolve to target instead
@ -355,7 +355,7 @@ class Sharing extends \EGroupware\Api\Sharing
$path = str_replace($check, $delinked, $path);
if(parse_url($path, PHP_URL_SCHEME) !== 'vfs')
{
$path = 'vfs://default'.($path[0] == '/' ? '' : '/').$path;
$path = Vfs::PREFIX.Vfs::parse_url($path, PHP_URL_PATH);
}
$check = $path;
}