summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2016-02-09 16:32:34 +0100
committerLukas Reschke <lukas@owncloud.com>2016-02-09 23:43:27 +0100
commit966eb4b0844aff453a48bcad7b342854f531f500 (patch)
tree5ec56d825093f40eb44545a9c8921bf09a7af9f6 /apps
parent5ccb9dfa7e35d78d61d7a973ee2a5fddfda7d766 (diff)
downloadnextcloud-server-966eb4b0844aff453a48bcad7b342854f531f500.tar.gz
nextcloud-server-966eb4b0844aff453a48bcad7b342854f531f500.zip
realPath should contain the path to the file we want to read, e.g. the version and not the original file
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/lib/crypto/encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/crypto/encryption.php b/apps/encryption/lib/crypto/encryption.php
index b640f9a7a03..403b617c5bb 100644
--- a/apps/encryption/lib/crypto/encryption.php
+++ b/apps/encryption/lib/crypto/encryption.php
@@ -170,7 +170,7 @@ class Encryption implements IEncryptionModule {
*/
public function begin($path, $user, $mode, array $header, array $accessList) {
$this->path = $this->getPathToRealFile($path);
- $this->realPath = $this->path;
+ $this->realPath = $path;
$this->accessList = $accessList;
$this->user = $user;
$this->isWriteOperation = false;