]> source.dussan.org Git - nextcloud-server.git/commitdiff
close file after write process
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 6 Jul 2012 15:09:20 +0000 (17:09 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 6 Jul 2012 15:09:20 +0000 (17:09 +0200)
apps/files_external/ajax/addRootCertificate.php

index c192855629209e5b45491ca9f5339f30a5f43fe2..c5f49a82d365c8994a7754899b4938744707aa9f 100644 (file)
@@ -17,6 +17,7 @@ if (!strpos($data, 'BEGIN CERTIFICATE')) {
        $pem = "-----BEGIN CERTIFICATE-----\n".$pem."-----END CERTIFICATE-----\n";
        $fh = fopen($to, 'w');
        fwrite($fh, $pem);
+       fclose($fh);
 }
 
 OC_Mount_Config::createCertificateBundle();