diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-11 16:53:10 +0400 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-11 16:53:10 +0400 |
commit | 92e6409f4008d21c8507310d7b6ce0f64fc29b71 (patch) | |
tree | 02eb2b47f614073ba7872f3ea0e076e829edf202 /lib/files/storage | |
parent | f223ab796b8b6da796321502e8eeffed81973629 (diff) |
fixing mappedlocal storage to work on non-windows as well
this allows us to run unit tests on linux - necessary to enable easy regression testing
Diffstat (limited to 'lib/files/storage')
-rw-r--r-- | lib/files/storage/mappedlocal.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/files/storage/mappedlocal.php b/lib/files/storage/mappedlocal.php index 411b053737a..218465d8eef 100644 --- a/lib/files/storage/mappedlocal.php +++ b/lib/files/storage/mappedlocal.php @@ -329,6 +329,9 @@ class MappedLocal extends \OC\Files\Storage\Common{ if(strpos($path, '/') === 0) { $path = substr($path, 1); } + if ($path === false) { + return ''; + } return $path; } |