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
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-13 10:58:37 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-02-13 10:58:37 +0400
commit06bba59249188e58036627a75268d9db69346f9b (patch)
tree41e0d144d47e20aaa2e4b79b2664638b09b7e0d3 /lib/files/storage/mappedlocal.php
parent68fa0b7dcc4a45e4f44b754626440091608ccc85 (diff)
parent92e6409f4008d21c8507310d7b6ce0f64fc29b71 (diff)
Merge pull request #1618 from owncloud/mapped-storage-unit-testing-linux-masterv5.0.0alpha1
Mapped storage unit testing linux master
Diffstat (limited to 'lib/files/storage/mappedlocal.php')
-rw-r--r--lib/files/storage/mappedlocal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/files/storage/mappedlocal.php b/lib/files/storage/mappedlocal.php
index 80dd79bc41f..218465d8eef 100644
--- a/lib/files/storage/mappedlocal.php
+++ b/lib/files/storage/mappedlocal.php
@@ -10,7 +10,7 @@ namespace OC\Files\Storage;
/**
* for local filestore, we only have to map the paths
*/
-class Local extends \OC\Files\Storage\Common{
+class MappedLocal extends \OC\Files\Storage\Common{
protected $datadir;
private $mapper;
@@ -329,6 +329,9 @@ class Local extends \OC\Files\Storage\Common{
if(strpos($path, '/') === 0) {
$path = substr($path, 1);
}
+ if ($path === false) {
+ return '';
+ }
return $path;
}