summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-12-06 16:11:41 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-12-06 16:11:41 +0100
commit9ff231590c7ae8395d6dd5b9a98c134289d81bf8 (patch)
tree7f44a1404689343eb3348f2f7b3d8d3194f6e240 /apps/files_encryption
parentdb0b291f63b4ee2a05769b1ab69ee258eed00d7d (diff)
downloadnextcloud-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.php2
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']
));