fix for path_hash not unique as reported at #3641
This commit is contained in:
parent
35da408222
commit
8566881758
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue