mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
got rename and put relativ working
This commit is contained in:
parent
4520dc2656
commit
819dc8be7c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user