Browse Source

if file doesn't exist, check parent folder

tags/v7.0.0alpha2
Bjoern Schiessle 10 years ago
parent
commit
277f25222a
2 changed files with 6 additions and 0 deletions
  1. 6
    0
      apps/files_encryption/lib/proxy.php
  2. 0
    0
      config/.htaccess

+ 6
- 0
apps/files_encryption/lib/proxy.php View File

@@ -51,11 +51,17 @@ class Proxy extends \OC_FileProxy {
*/
private function isExcludedPath($path, $uid) {

$view = new \OC\Files\View();

// files outside of the files-folder are excluded
if(strpos($path, '/' . $uid . '/files') !== 0) {
return true;
}

if (!$view->file_exists($path)) {
$path = dirname($path);
}

// we don't encrypt server-to-server shares
list($storage, ) = \OC\Files\Filesystem::resolvePath($path);
if ($storage instanceof OCA\Files_Sharing\External\Storage) {

+ 0
- 0
config/.htaccess View File


Loading…
Cancel
Save