meta data are at the end of the file

This commit is contained in:
Björn Schießle 2016-01-05 16:55:58 +01:00 committed by Lukas Reschke
parent e7ff84df5c
commit 61dd191253
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ class Crypt {
* @throws HintException
*/
private function hasSignature($catFile, $cipher) {
$meta = substr($catFile, 93);
$meta = substr($catFile, -93);
$signaturePosition = strpos($meta, '00sig00');
// enforce signature for the new 'CTR' ciphers