diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-04 16:44:50 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-04 16:44:50 +0200 |
commit | ddac446c5b9c0257b66f8ed40596817b91c9fb56 (patch) | |
tree | 3d01978fce4016d60718dd1f79432dc8e0e2b103 /apps | |
parent | e4a3f8d3c44f3238071d03f793cd2c5395062b5e (diff) | |
download | nextcloud-server-ddac446c5b9c0257b66f8ed40596817b91c9fb56.tar.gz nextcloud-server-ddac446c5b9c0257b66f8ed40596817b91c9fb56.zip |
always take unencrypted size
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index b1af4676852..852b9111c12 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -157,8 +157,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 |