[Pkg-owncloud-commits] [owncloud] 57/394: check if $path is a empty string

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:27 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 b7a50a4f6f514da8994042047ac0129e9e1f9aaf
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Wed Nov 7 17:15:13 2012 +0100

    check if $path is a empty string
---
 lib/filesystemview.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index d34fbf8..cfd6a40 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -48,7 +48,7 @@ class OC_FilesystemView {
 	}
 
 	public function getAbsolutePath($path = '/') {
-		if($path[0]!=='/') {
+		if(!$path || $path[0]!=='/') {
 			$path='/'.$path;
 		}
 		return $this->fakeRoot.$path;

-- 
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