nextcloud/apps/files_external/ajax/removeRootCertificate.php

12 lines
286 B
PHP
Raw Normal View History

<?php
OCP\JSON::checkAppEnabled('files_external');
2012-08-10 02:44:35 +04:00
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$name = $_POST['cert'];
$certificateManager = \OC::$server->getCertificateManager();
if (\OC\Files\Filesystem::isValidPath($name)) {
$certificateManager->removeCertificate($name);
}