Преглед на файлове

Only handle encrypted property on folders

Exposing the encrypted property is required for E2E. However, there is
no need to expose this on files as then it is server side encryption
(which the clients don't care about).

Better to not confuse the output.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v14.0.0beta1
Roeland Jago Douma преди 6 години
родител
ревизия
9896b15ec8
No account linked to committer's email address
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4
    4
      apps/dav/lib/Connector/Sabre/FilesPlugin.php

+ 4
- 4
apps/dav/lib/Connector/Sabre/FilesPlugin.php Целия файл

@@ -339,10 +339,6 @@ class FilesPlugin extends ServerPlugin {
}
});

$propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function() use ($node) {
return $node->getFileInfo()->isEncrypted() ? '1' : '0';
});

$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
return json_encode($this->previewManager->isAvailable($node->getFileInfo()));
});
@@ -391,6 +387,10 @@ class FilesPlugin extends ServerPlugin {
$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
return $node->getSize();
});

$propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function() use ($node) {
return $node->getFileInfo()->isEncrypted() ? '1' : '0';
});
}
}


Loading…
Отказ
Запис