]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix reading of private key
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 14 Apr 2015 10:23:25 +0000 (12:23 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 14 Apr 2015 10:23:25 +0000 (12:23 +0200)
apps/encryption/lib/crypto/crypt.php

index 91f986611bef60fc22f6cc2176e54b25416bfa94..c026aa6a90a4a68cd0f14f2bde748503858c5456 100644 (file)
@@ -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,