fix migration from old to new encryption

remotes/origin/stable6
Björn Schießle 12 years ago
parent f8d1c32112
commit 8b35578833
  1. 2
      apps/files_encryption/hooks/hooks.php
  2. 2
      apps/files_encryption/lib/crypt.php

@ -81,8 +81,6 @@ class Hooks {
$session->setLegacyKey( $plainLegacyKey );
}
$publicKey = Keymanager::getPublicKey( $view, $params['uid'] );
// Encrypt existing user files:
// This serves to upgrade old versions of the encryption

@ -613,7 +613,7 @@ class Crypt
$decrypted = $bf->decrypt( $content );
return rtrim( $decrypted, "\0" );;
return $decrypted;
}

Loading…
Cancel
Save