mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
An attempt to fix broken collabora sharing which originally got broken by commit f166fbdd46
in order to get mounted template sharing fixed.
This commit is contained in:
parent
6c15873c4f
commit
600872a4bf
@ -455,9 +455,16 @@ class Sharing
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)))
|
||||||
|
{
|
||||||
|
if (preg_match("/^(sqlfs|vfs)/", $stat['url']))
|
||||||
{
|
{
|
||||||
$vfs_path = Vfs::parse_url($path, PHP_URL_PATH);
|
$vfs_path = Vfs::parse_url($path, PHP_URL_PATH);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$vfs_path = Vfs::parse_url($stat['url'], PHP_URL_PATH);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// check if file exists and is readable
|
// check if file exists and is readable
|
||||||
if (!$exists)
|
if (!$exists)
|
||||||
|
Loading…
Reference in New Issue
Block a user