[Pkg-owncloud-commits] [owncloud] 58/165: Thou shalt not corrupt the answer of a cache request
David Prévot
taffit at moszumanska.debian.org
Thu Apr 23 04:06:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit fcc1b9b3cc314e4b9032fbebfbce0333eae44998
Author: Olivier Paroz <github at oparoz.com>
Date: Sat Apr 18 12:33:43 2015 +0200
Thou shalt not corrupt the answer of a cache request
---
apps/files_sharing/lib/readonlycache.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/apps/files_sharing/lib/readonlycache.php b/apps/files_sharing/lib/readonlycache.php
index ebef163..c7640f8 100644
--- a/apps/files_sharing/lib/readonlycache.php
+++ b/apps/files_sharing/lib/readonlycache.php
@@ -28,7 +28,9 @@ use OC\Files\Cache\Cache;
class ReadOnlyCache extends Cache {
public function get($path) {
$data = parent::get($path);
- $data['permissions'] &= (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE);
+ if ($data !== false) {
+ $data['permissions'] &= (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE);
+ }
return $data;
}
--
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