From: Thomas Müller Date: Tue, 14 Apr 2015 10:23:25 +0000 (+0200) Subject: fix reading of private key X-Git-Tag: v8.1.0alpha1~14^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f816acde271342ef20de612e6b6deca90dbffb67;p=nextcloud-server.git fix reading of private key --- diff --git a/apps/encryption/lib/crypto/crypt.php b/apps/encryption/lib/crypto/crypt.php index 91f986611be..c026aa6a90a 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,