summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-21 19:36:20 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-21 19:36:20 +0100
commit9bab05fd45434a62c9c017d73d74c1fe1928ead0 (patch)
tree8ef2b1662295df1b4f9bc1fe4faa3bfea8109f65 /apps/files_sharing/public.php
parentc57c9eae769b70a1b273c564b76d57d95ebcf2ab (diff)
parent3b7fea25a30aa7dc590d90c5c91147ae9d94ba13 (diff)
downloadnextcloud-server-9bab05fd45434a62c9c017d73d74c1fe1928ead0.tar.gz
nextcloud-server-9bab05fd45434a62c9c017d73d74c1fe1928ead0.zip
Merge branch 'master' into fixing-gallery-password-protected-access-master
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 100379047d3..4a81e482970 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -43,10 +43,10 @@ if (isset($_GET['t'])) {
$shareOwner = $linkItem['uid_owner'];
$path = null;
$rootLinkItem = OCP\Share::resolveReShare($linkItem);
- $fileOwner = $rootLinkItem['uid_owner'];
- if (isset($fileOwner)) {
+ if (isset($rootLinkItem['uid_owner'])) {
+ OCP\JSON::checkUserExists($rootLinkItem['uid_owner']);
OC_Util::tearDownFS();
- OC_Util::setupFS($fileOwner);
+ OC_Util::setupFS($rootLinkItem['uid_owner']);
$path = \OC\Files\Filesystem::getPath($linkItem['file_source']);
}
}