]> source.dussan.org Git - nextcloud-server.git/commitdiff
revert last changes
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 16 Oct 2013 09:24:56 +0000 (11:24 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 16 Oct 2013 09:24:56 +0000 (11:24 +0200)
apps/files_encryption/lib/proxy.php

index 1a950122119fcfd3f0b1b1eab0d4976631f128e7..fa1a47035733e83f462379bcd5e26d001e730974 100644 (file)
@@ -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