summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/share/file.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-07 20:52:51 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-07 20:52:51 -0500
commite8b195bf109d702402735e628b2d239b199088e5 (patch)
tree22d8920ea9ad18260b80d26848cd74928b269fd9 /apps/files_sharing/lib/share/file.php
parent8f8a5bbfb750b3c9091da810749a43cada2740b2 (diff)
downloadnextcloud-server-e8b195bf109d702402735e628b2d239b199088e5.tar.gz
nextcloud-server-e8b195bf109d702402735e628b2d239b199088e5.zip
Almost fix Shared scanner...
Diffstat (limited to 'apps/files_sharing/lib/share/file.php')
-rw-r--r--apps/files_sharing/lib/share/file.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php
index 5e98c455d35..6d3c55a008f 100644
--- a/apps/files_sharing/lib/share/file.php
+++ b/apps/files_sharing/lib/share/file.php
@@ -117,6 +117,9 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
}
public static function getSource($target) {
+ if ($target == '') {
+ return false;
+ }
$target = '/'.$target;
$target = rtrim($target, '/');
$pos = strpos($target, '/', 1);