summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/util.php')
-rw-r--r--apps/files_sharing/lib/util.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/util.php b/apps/files_sharing/lib/util.php
index 2306408dc0e..a7422941c06 100644
--- a/apps/files_sharing/lib/util.php
+++ b/apps/files_sharing/lib/util.php
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* ownCloud
*
@@ -33,6 +33,10 @@ class OC_Files_Sharing_Util {
private static function getFile($target) {
$target = '/'.$target;
$target = rtrim($target, '/');
+ if ($target == NULL) {
+ return false;
+ }
+
if (isset(self::$files[$target])) {
return self::$files[$target];
} else {