check if it is a cached file or a version to resolve the correct path to the file key

remotes/origin/stable6
Bjoern Schiessle 12 years ago
parent 0c24c7c420
commit f3e2a63712
  1. 6
      apps/files_encryption/lib/util.php

@ -472,7 +472,11 @@ class Util {
*/
public function isEncryptedPath($path) {
$relPath = Helper::stripUserFilesPath($path);
$relPath = Helper::getPathToRealFile($path);
if ($relPath === false) {
$relPath = Helper::stripUserFilesPath($path);
}
$fileKey = Keymanager::getFileKey($this->view, $relPath);

Loading…
Cancel
Save