aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-06-13 20:52:34 +0200
committerFlorin Peter <github@florin-peter.de>2013-06-13 20:52:34 +0200
commit85668817580bc4c4a460dc18925ad374ac5c3945 (patch)
tree8aeef5048797317f844cab815655b446275982a5 /apps/files_encryption
parent35da408222109b49477e497bc2b098cf3dd037a0 (diff)
downloadnextcloud-server-85668817580bc4c4a460dc18925ad374ac5c3945.tar.gz
nextcloud-server-85668817580bc4c4a460dc18925ad374ac5c3945.zip
fix for path_hash not unique as reported at #3641
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/lib/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index 4591add83b0..b4b3923a799 100644
--- a/apps/files_encryption/lib/util.php
+++ b/apps/files_encryption/lib/util.php
@@ -697,7 +697,7 @@ class Util {
$plainHandle = $this->view->fopen($rawPath, 'rb');
// Open enc file handle for binary writing, with same filename as original plain file
- $encHandle = fopen('crypt://' . $relPath . '.tmp', 'wb');
+ $encHandle = fopen('crypt://' . $relPath . '.part', 'wb');
// Move plain file to a temporary location
$size = stream_copy_to_stream($plainHandle, $encHandle);
@@ -707,7 +707,7 @@ class Util {
$fakeRoot = $this->view->getRoot();
$this->view->chroot('/' . $this->userId . '/files');
- $this->view->rename($relPath . '.tmp', $relPath);
+ $this->view->rename($relPath . '.part', $relPath);
$this->view->chroot($fakeRoot);