summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjknockaert <jasper@knockaert.nl>2014-10-19 22:54:34 +0200
committerjknockaert <jasper@knockaert.nl>2014-10-19 22:54:34 +0200
commit3be57d0169eaa2bc95f25c3ed070bdc9940a1531 (patch)
tree8bc941c1ba27da0b729e23741d7bfa4823ca5b78
parente318858152683b23bac6bc646c557c2420bee2cf (diff)
downloadnextcloud-server-3be57d0169eaa2bc95f25c3ed070bdc9940a1531.tar.gz
nextcloud-server-3be57d0169eaa2bc95f25c3ed070bdc9940a1531.zip
small fix
-rw-r--r--apps/files_encryption/lib/util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index 3cf83703295..410d3dd1255 100644
--- a/apps/files_encryption/lib/util.php
+++ b/apps/files_encryption/lib/util.php
@@ -398,7 +398,8 @@ class Util {
// we set the cipher
// and we update the size
if ($this->containHeader($path)) {
- $header = fread($stream,Crypt::BLOCKSIZE);
+ $data = fread($stream,Crypt::BLOCKSIZE);
+ $header = Crypt::parseHeader($data);
$cipher = Crypt::getCipher($header);
$size -= Crypt::BLOCKSIZE;
}