Browse Source

close file after write process

remotes/origin/stable5
Bjoern Schiessle 14 years ago
parent
commit
ca26bcc581
  1. 1
      apps/files_external/ajax/addRootCertificate.php

1
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();

Loading…
Cancel
Save