summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-16 11:24:56 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-16 11:24:56 +0200
commit6bfd8bdf63329460a472462a60d40d3b345f42e0 (patch)
treea9cd595c7282c43f9edadd234490af4f398e8b9b /apps/files_encryption
parent0811d2e30443de46f8e1202ec09c3c93fed87f2c (diff)
downloadnextcloud-server-6bfd8bdf63329460a472462a60d40d3b345f42e0.tar.gz
nextcloud-server-6bfd8bdf63329460a472462a60d40d3b345f42e0.zip
revert last changes
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/lib/proxy.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 1a950122119..fa1a4703573 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -348,9 +348,7 @@ class Proxy extends \OC_FileProxy {
// if file is encrypted return real file size
if (is_array($fileInfo) && $fileInfo['encrypted'] === true) {
// try to fix unencrypted file size if it doesn't look plausible
- if ((int)$fileInfo['size'] > 0 &&
- ((int)$fileInfo['unencrypted_size'] === 0 ||
- (int)$fileInfo['size'] === (int)$fileInfo['unencrypted_size'])) {
+ if ((int)$fileInfo['size'] > 0 && (int)$fileInfo['unencrypted_size'] === 0 ) {
$fixSize = $util->getFileSize($path);
$fileInfo['unencrypted_size'] = $fixSize;
// put file info if not .part file