]> source.dussan.org Git - nextcloud-server.git/commitdiff
always take unencrypted size
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Jul 2014 14:44:50 +0000 (16:44 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Jul 2014 14:44:50 +0000 (16:44 +0200)
apps/files_encryption/lib/proxy.php

index b1af4676852e2de6285adf9a00eb77e7868fe12d..852b9111c1200ef196fb325da5cb7933d16e8c8f 100644 (file)
@@ -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