fix empty path

remotes/origin/stable6
Florin Peter 12 years ago
parent 8fcef41143
commit a9649713d3
  1. 5
      apps/files_encryption/lib/proxy.php

@ -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);

Loading…
Cancel
Save