diff options
author | Florin Peter <github@florin-peter.de> | 2013-06-13 20:51:22 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-06-13 20:51:22 +0200 |
commit | 35da408222109b49477e497bc2b098cf3dd037a0 (patch) | |
tree | 43dc4bc724d5121de52690482f6653499b718725 /apps/files_encryption/lib/crypt.php | |
parent | 7889f2ef5c086d050cb88e2943253af84362365f (diff) | |
download | nextcloud-server-35da408222109b49477e497bc2b098cf3dd037a0.tar.gz nextcloud-server-35da408222109b49477e497bc2b098cf3dd037a0.zip |
fix memory problems as reported at #3620
Diffstat (limited to 'apps/files_encryption/lib/crypt.php')
-rwxr-xr-x | apps/files_encryption/lib/crypt.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php index cd41390d1c5..945b342a316 100755 --- a/apps/files_encryption/lib/crypt.php +++ b/apps/files_encryption/lib/crypt.php @@ -168,7 +168,7 @@ class Crypt { * e.g. filename or /Docs/filename, NOT admin/files/filename
* @return boolean
*/
- public static function isLegacyEncryptedContent($data, $relPath) {
+ public static function isLegacyEncryptedContent($isCatFileContent, $relPath) {
// Fetch all file metadata from DB
$metadata = \OC\Files\Filesystem::getFileInfo($relPath, '');
@@ -178,7 +178,7 @@ class Crypt { // legacy encryption system
if (isset($metadata['encrypted'])
&& $metadata['encrypted'] === true
- && !self::isCatfileContent($data)
+ && $isCatFileContent === false
) {
return true;
@@ -480,7 +480,7 @@ class Crypt { } else {
- \OCP\Util::writeLog('Encryption library', 'Decryption (asymmetric) of sealed content failed', \OCP\Util::ERROR);
+ \OCP\Util::writeLog('Encryption library', 'Decryption (asymmetric) of sealed content with share-key "'.$shareKey.'" failed', \OCP\Util::ERROR);
return false;
|