]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't write file if opening a stream to encrypt the data fails
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 28 Mar 2014 11:02:49 +0000 (12:02 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 28 Mar 2014 11:02:49 +0000 (12:02 +0100)
apps/files_encryption/lib/proxy.php

index bae1fded53d3376b7b076ab92535548d27a7aaa1..6549273c8f1e5539554548560f5d4b3c8429654f 100644 (file)
@@ -128,6 +128,8 @@ class Proxy extends \OC_FileProxy {
 
                                        // re-enable proxy - our work is done
                                        \OC_FileProxy::$enabled = $proxyStatus;
+                               } else {
+                                       return false;
                                }
                        }
                }