From 3be57d0169eaa2bc95f25c3ed070bdc9940a1531 Mon Sep 17 00:00:00 2001 From: jknockaert <jasper@knockaert.nl> Date: Sun, 19 Oct 2014 22:54:34 +0200 Subject: [PATCH] small fix --- apps/files_encryption/lib/util.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 3cf8370329..410d3dd125 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; } -- GitLab