Skip to content
Snippets Groups Projects
Commit a9649713 authored by Florin Peter's avatar Florin Peter
Browse files

fix empty path

parent 8fcef411
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment