You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

removeRootCertificate.php 309B

12345678910111213
  1. <?php
  2. OCP\JSON::checkAppEnabled('files_external');
  3. OCP\JSON::checkLoggedIn();
  4. OCP\JSON::callCheck();
  5. $view = \OCP\Files::getStorage("files_external");
  6. $file = 'uploads/'.ltrim($_POST['cert'], "/\\.");
  7. if ( $view->file_exists($file) ) {
  8. $view->unlink($file);
  9. OC_Mount_Config::createCertificateBundle();
  10. }