server/settings/ajax/removeRootCertificate.php
Morris Jobke 06aef4e8b1 Revert "Updating license headers"
This reverts commit 6a1a4880f0.
2015-02-26 11:37:37 +01:00

7 lines
197 B
PHP

<?php
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$name = (string)$_POST['cert'];
$certificateManager = \OC::$server->getCertificateManager();
$certificateManager->removeCertificate($name);