diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index 196d789d97..b7d3625e52 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -430,7 +430,7 @@ class Sharing if (($exists = ($stat = Vfs::stat($path)) && Vfs::check_access($path, Vfs::READABLE, $stat))) { - $vfs_path = Vfs::parse_url($path, PHP_URL_PATH); + $vfs_path = Vfs::parse_url($stat['url'], PHP_URL_PATH); } } // check if file exists and is readable