Fix collabora can not open vfs symlinks from apps

This commit is contained in:
Hadi Nategh 2017-12-13 10:10:04 +01:00
parent 540f3d574d
commit 9b639b1fe0

View File

@ -1565,6 +1565,10 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
{ {
$vfs = new self(); $vfs = new self();
$stat = $vfs->url_stat($path,0); $stat = $vfs->url_stat($path,0);
if ($stat['readlink'])
{
$stat = $vfs->url_stat($stat['readlink'], 0);
}
$fs_id = $stat['ino']; $fs_id = $stat['ino'];
$query = 'SELECT MIN(B.fs_id) $query = 'SELECT MIN(B.fs_id)