[Pkg-owncloud-commits] [owncloud] 13/28: Users of getFolderContent are mostly interested in the unecrypted file size

David Prévot taffit at moszumanska.debian.org
Sat Dec 7 02:33:31 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a2bbbb144861186dbfa333484eaf84f9bf89a34c
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Thu Nov 14 08:48:06 2013 +0100

    Users of getFolderContent are mostly interested in the unecrypted file size
---
 lib/private/files/cache/cache.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index ac50a98..8e682a9 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -178,6 +178,10 @@ class Cache {
 				if ($file['storage_mtime'] == 0) {
 					$file['storage_mtime'] = $file['mtime'];
 				}
+				if ($file['encrypted']) {
+					$file['encrypted_size'] = $file['size'];
+					$file['size'] = $file['unencrypted_size'];
+				}
 			}
 			return $files;
 		} else {

-- 
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