summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-06 17:09:20 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-06 17:09:20 +0200
commitca26bcc581ed7e19cdd236e0bc2010c4f3008679 (patch)
tree1cd57f2b4cbf7e46d0fa3c52786cb5de1b911c21 /apps/files_external/ajax
parente91b4bc2ac79f8855c57accfce2558ead52d2943 (diff)
downloadnextcloud-server-ca26bcc581ed7e19cdd236e0bc2010c4f3008679.tar.gz
nextcloud-server-ca26bcc581ed7e19cdd236e0bc2010c4f3008679.zip
close file after write process
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r--apps/files_external/ajax/addRootCertificate.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/ajax/addRootCertificate.php b/apps/files_external/ajax/addRootCertificate.php
index c1928556292..c5f49a82d36 100644
--- a/apps/files_external/ajax/addRootCertificate.php
+++ b/apps/files_external/ajax/addRootCertificate.php
@@ -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();