mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
check if encryption app is enabled before trying to calculate file size
This commit is contained in:
parent
b9d6539d76
commit
62b8c36a40
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ class Proxy extends \OC_FileProxy {
|
|||
public function postGetFileInfo($path, $data) {
|
||||
|
||||
// if path is a folder do nothing
|
||||
if (is_array($data) && array_key_exists('size', $data)) {
|
||||
if (\OCP\App::isEnabled('files_encryption') && is_array($data) && array_key_exists('size', $data)) {
|
||||
|
||||
// Disable encryption proxy to prevent recursive calls
|
||||
$proxyStatus = \OC_FileProxy::$enabled;
|
||||
|
|
|
|||
Loading…
Reference in a new issue