diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-12-06 16:11:41 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-12-06 16:11:41 +0100 |
commit | 9ff231590c7ae8395d6dd5b9a98c134289d81bf8 (patch) | |
tree | 7f44a1404689343eb3348f2f7b3d8d3194f6e240 /apps/files_encryption | |
parent | db0b291f63b4ee2a05769b1ab69ee258eed00d7d (diff) | |
download | nextcloud-server-9ff231590c7ae8395d6dd5b9a98c134289d81bf8.tar.gz nextcloud-server-9ff231590c7ae8395d6dd5b9a98c134289d81bf8.zip |
set unencrypted_size to 0 after decryption... so that the unencrypted_size gets re-calculated if encryption was enabled again
Diffstat (limited to 'apps/files_encryption')
-rw-r--r-- | apps/files_encryption/lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 2ada62354c4..ef8d0161f6e 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -770,7 +770,7 @@ class Util { \OC\Files\Filesystem::putFileInfo($relPath, array( 'encrypted' => false, 'size' => $size, - 'unencrypted_size' => $size, + 'unencrypted_size' => 0, 'etag' => $fileInfo['etag'] )); |