aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedmount.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-03-26 21:56:44 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-03-26 21:56:44 +0100
commita3592534ef9dfd93388c09e9aa6fce3ca45fc9ee (patch)
tree4eb23c1f3e3795e7e550ccb74231fed88f7a8713 /apps/files_sharing/lib/sharedmount.php
parent4c00be49613fe14a03e996dd0768bcb7ef2795ab (diff)
downloadnextcloud-server-a3592534ef9dfd93388c09e9aa6fce3ca45fc9ee.tar.gz
nextcloud-server-a3592534ef9dfd93388c09e9aa6fce3ca45fc9ee.zip
always fall back to default share folder
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r--apps/files_sharing/lib/sharedmount.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index 47378593757..da00549541b 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -50,8 +50,8 @@ class SharedMount extends MountPoint implements MoveableMount {
$mountPoint = basename($share['file_target']);
$parent = dirname($share['file_target']);
- while (!\OC\Files\Filesystem::is_dir($parent)) {
- $parent = dirname($parent);
+ if (!\OC\Files\Filesystem::is_dir($parent)) {
+ $parent = Helper::getShareFolder();
}
$newMountPoint = \OCA\Files_Sharing\Helper::generateUniqueTarget(