[Pkg-owncloud-commits] [owncloud] 312/394: fixes #1015
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:38 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 6a4e667d1646122fc7fb30e06eea6bc46f513238
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date: Sat Jan 26 20:44:49 2013 +0100
fixes #1015
---
apps/files_sharing/lib/util.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/apps/files_sharing/lib/util.php b/apps/files_sharing/lib/util.php
index 2306408..a742294 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 {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list