summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-08-27 16:29:54 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-06 16:05:11 +0200
commitf6830e7462888f67549a8275826e1a14c0339711 (patch)
treef5ece0b23e9f2c44dfe5310afabf6a45547ff0fc /apps/files_encryption
parent404e36323a06c4c01eea1ccb2d97306e570ec6cc (diff)
downloadnextcloud-server-f6830e7462888f67549a8275826e1a14c0339711.tar.gz
nextcloud-server-f6830e7462888f67549a8275826e1a14c0339711.zip
check shares for the real file and not for the .part file
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/lib/util.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index 62f82ce1a96..3922f7d9d7f 100644
--- a/apps/files_encryption/lib/util.php
+++ b/apps/files_encryption/lib/util.php
@@ -1136,6 +1136,11 @@ class Util {
// Make sure that a share key is generated for the owner too
list($owner, $ownerPath) = $this->getUidAndFilename($filePath);
+ $pathinfo = pathinfo($ownerPath);
+ if(array_key_exists('extension', $pathinfo) && $pathinfo['extension'] === 'part') {
+ $ownerPath = $pathinfo['dirname'] . '/' . $pathinfo['filename'];
+ }
+
$userIds = array();
if ($sharingEnabled) {