diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:17:35 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:17:35 +0200 |
commit | 5bfff6c56e8d4d911c7a5265bb5462c7122ca495 (patch) | |
tree | 18520084c57bf557aff246a88aafd6f77c09815b /lib/public | |
parent | 3437071cf1776288d9239a89b1a6ceb9c5ddbce1 (diff) | |
download | nextcloud-server-5bfff6c56e8d4d911c7a5265bb5462c7122ca495.tar.gz nextcloud-server-5bfff6c56e8d4d911c7a5265bb5462c7122ca495.zip |
use absolute paths when resolving mount points
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 060f67c9e91..707d5abe440 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -534,7 +534,7 @@ class Share { $backend = self::getBackend($itemType); // Get filesystem root to add it to the file target and remove from the file source, match file_source with the file cache if ($itemType == 'file' || $itemType == 'folder') { - $root = \OC_Filesystem::getRoot(); + $root = \OC\Files\Filesystem::getRoot(); $where = 'INNER JOIN `*PREFIX*fscache` ON `file_source` = `*PREFIX*fscache`.`id`'; if (!isset($item)) { $where .= ' WHERE `file_target` IS NOT NULL'; @@ -621,7 +621,7 @@ class Share { } else { if ($itemType == 'file' || $itemType == 'folder') { $where .= ' `file_target` = ?'; - $item = \OC_Filesystem::normalizePath($item); + $item = \OC\Files\Filesystem::normalizePath($item); } else { $where .= ' `item_target` = ?'; } |