Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMatthew Dawson <matthew@mjdsystems.ca>2011-01-04 19:42:57 +0300
committerMatthew Dawson <matthew@mjdsystems.ca>2011-01-07 00:52:28 +0300
commit9e75e34184b38791c75245d6061cdf25e362149f (patch)
tree96ad05ce59c72dfcd608ce53e6bae6ce85b4a3cd /inc
parente0f6ad1c9cfb06fc6b1c47dc9f32a80382fb2114 (diff)
Return a '/' instead of 'false' when listing the root folder.
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
Diffstat (limited to 'inc')
-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;
}