aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Dawson <matthew@mjdsystems.ca>2011-01-04 11:42:57 -0500
committerMatthew Dawson <matthew@mjdsystems.ca>2011-01-06 16:52:28 -0500
commit9e75e34184b38791c75245d6061cdf25e362149f (patch)
tree96ad05ce59c72dfcd608ce53e6bae6ce85b4a3cd
parente0f6ad1c9cfb06fc6b1c47dc9f32a80382fb2114 (diff)
downloadnextcloud-server-9e75e34184b38791c75245d6061cdf25e362149f.tar.gz
nextcloud-server-9e75e34184b38791c75245d6061cdf25e362149f.zip
Return a '/' instead of 'false' when listing the root folder.
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
-rw-r--r--inc/lib_filesystem.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php
index 170d296bd23..57e4d7a70c2 100644
--- a/inc/lib_filesystem.php
+++ b/inc/lib_filesystem.php
@@ -369,6 +369,9 @@ class OC_FILESYSTEM{
}
$file=$mp.$file;
$file=substr($file,strlen(self::$fakeRoot));
+ if($file === '' || $file === false){
+ $file = '/';
+ }
}
return $return;
}