[Pkg-owncloud-commits] [owncloud] 07/34: always take unencrypted size
David Prévot
taffit at moszumanska.debian.org
Fri Oct 17 01:32:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 697f461ded3882b45292258f7e8bc67f3e775309
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Fri Jul 4 16:44:50 2014 +0200
always take unencrypted size
---
apps/files_encryption/lib/proxy.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 0b6cfaa..e10bc7e 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -162,8 +162,8 @@ class Proxy extends \OC_FileProxy {
// store new unenecrypted size so that it can be updated
// in the post proxy
$tmpFileInfo = $view->getFileInfo($tmpPath);
- if ( isset($tmpFileInfo['size']) ) {
- self::$unencryptedSizes[\OC\Files\Filesystem::normalizePath($path)] = $tmpFileInfo['size'];
+ if ( isset($tmpFileInfo['unencrypted_size']) ) {
+ self::$unencryptedSizes[\OC\Files\Filesystem::normalizePath($path)] = $tmpFileInfo['unencrypted_size'];
}
// remove our temp file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list