[Pkg-owncloud-commits] [owncloud] 81/134: don't write file if opening a stream to encrypt the data fails

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 21:44:03 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 027de5455845fdb59b92e3b1bbf56a92be1e617e
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Fri Mar 28 12:02:49 2014 +0100

    don't write file if opening a stream to encrypt the data fails
---
 apps/files_encryption/lib/proxy.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 2daf5b2..ef40c18 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -128,6 +128,8 @@ class Proxy extends \OC_FileProxy {
 
 					// re-enable proxy - our work is done
 					\OC_FileProxy::$enabled = $proxyStatus;
+				} else {
+					return false;
 				}
 			}
 		}

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