always call stripUserFilesPath(), we need to keep the Shared/ to find the correct owner of the file later

This commit is contained in:
Björn Schießle 2013-03-26 12:23:28 +01:00
parent f10be4ea17
commit 5995b6996b
1 changed files with 2 additions and 10 deletions

View File

@ -209,16 +209,8 @@ class Proxy extends \OC_FileProxy {
$view = new \OC_FilesystemView( '/' );
$util = new Util( $view, $userId );
if ( $util->isSharedPath( $path ) ) {
$relPath = $util->stripSharedFilePath( $path );
} else {
$relPath = $util->stripUserFilesPath( $path );
}
// TODO check for existing key file and reuse it if possible to avoid problems with versioning etc.
// Disable encryption proxy to prevent recursive calls