diff options
author | jknockaert <jasper@knockaert.nl> | 2014-10-19 22:54:34 +0200 |
---|---|---|
committer | jknockaert <jasper@knockaert.nl> | 2014-10-19 22:54:34 +0200 |
commit | 3be57d0169eaa2bc95f25c3ed070bdc9940a1531 (patch) | |
tree | 8bc941c1ba27da0b729e23741d7bfa4823ca5b78 | |
parent | e318858152683b23bac6bc646c557c2420bee2cf (diff) | |
download | nextcloud-server-3be57d0169eaa2bc95f25c3ed070bdc9940a1531.tar.gz nextcloud-server-3be57d0169eaa2bc95f25c3ed070bdc9940a1531.zip |
small fix
-rw-r--r-- | apps/files_encryption/lib/util.php | 3 |
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; } |