]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove duplicated code
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 17 Dec 2013 10:28:05 +0000 (11:28 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 17 Dec 2013 10:28:05 +0000 (11:28 +0100)
apps/files_encryption/lib/proxy.php

index 96667493a516638c75979125dbd64d5f392b18ef..41f352d853a3d31be234f462807d5116a709dfc9 100644 (file)
@@ -209,10 +209,7 @@ class Proxy extends \OC_FileProxy {
 
                $util = new Util($view, $userId);
 
-               // get relative path
-               $relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path);
-
-               list($owner, $ownerPath) = $util->getUidAndFilename($relativePath);
+               list($owner, $ownerPath) = $util->getUidAndFilename($relPath);
 
                // Delete keyfile & shareKey so it isn't orphaned
                if (!Keymanager::deleteFileKey($view, $ownerPath)) {