fix empty path

This commit is contained in:
Florin Peter 2013-05-07 13:42:08 +02:00
parent 8fcef41143
commit a9649713d3
1 changed files with 5 additions and 0 deletions

View File

@ -433,6 +433,11 @@ class Proxy extends \OC_FileProxy {
$path_split = explode('/', $path);
$path_f = implode('/', array_slice($path_split, 3));
// if path is empty we cannot resolve anything
if(empty($path_f)) {
return $size;
}
// get file info from database/cache
$fileInfo = \OC\Files\Filesystem::getFileInfo($path_f);