From 00ed2e87c9a1aa6f9ecd54ceaec4346250f6afca Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Thu, 18 Oct 2012 16:38:36 +0200 Subject: check for mount points if file was shared from a different user --- lib/filesystem.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/filesystem.php') diff --git a/lib/filesystem.php b/lib/filesystem.php index da524d7f181..5dc4b2f89e5 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -184,6 +184,12 @@ class OC_Filesystem{ * @return OC_Filestorage */ static public function getStorage($path) { + $user = ltrim(substr($path, 0, strpos($path, '/', 1)), '/'); + // check mount points if file was shared from a different user + if ($user != OC_User::getUser()) { + OC_Util::loadMountPoints($user); + } + $mountpoint=self::getMountPoint($path); if($mountpoint) { if(!isset(OC_Filesystem::$storages[$mountpoint])) { -- cgit v1.2.3