From f816acde271342ef20de612e6b6deca90dbffb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 14 Apr 2015 12:23:25 +0200 Subject: [PATCH] fix reading of private key --- apps/encryption/lib/crypto/crypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/encryption/lib/crypto/crypt.php b/apps/encryption/lib/crypto/crypt.php index 91f986611b..c026aa6a90 100644 --- a/apps/encryption/lib/crypto/crypt.php +++ b/apps/encryption/lib/crypto/crypt.php @@ -245,7 +245,7 @@ class Crypt { if (!empty($header)) { $privateKey = substr($privateKey, strpos($privateKey, - self::HEADER_END) + strlen(self::HEADER_START)); + self::HEADER_END) + strlen(self::HEADER_END)); } $plainKey = $this->symmetricDecryptFileContent($privateKey,