summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-03-28 12:02:49 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-03-28 12:02:49 +0100
commitb9100bc2de3cd94b386ae4c1dff5e0f3c2086f9b (patch)
treee649f2ba60b533cf0148b2aa4ab042ca627f2e3c /apps/files_encryption/lib
parent0757f87dba371efcdba60f82cbf9faac34c6b0c2 (diff)
downloadnextcloud-server-b9100bc2de3cd94b386ae4c1dff5e0f3c2086f9b.tar.gz
nextcloud-server-b9100bc2de3cd94b386ae4c1dff5e0f3c2086f9b.zip
don't write file if opening a stream to encrypt the data fails
Diffstat (limited to 'apps/files_encryption/lib')
-rw-r--r--apps/files_encryption/lib/proxy.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index bae1fded53d..6549273c8f1 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;
}
}
}