mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 18:11:02 -04:00
This enforces proper types on POST and GET arguments where I considered it sensible. I didn't update some as I don't know what kind of values they would support 🙈 Fixes https://github.com/owncloud/core/issues/14196 for core
7 lines
197 B
PHP
7 lines
197 B
PHP
<?php
|
|
OCP\JSON::checkLoggedIn();
|
|
OCP\JSON::callCheck();
|
|
|
|
$name = (string)$_POST['cert'];
|
|
$certificateManager = \OC::$server->getCertificateManager();
|
|
$certificateManager->removeCertificate($name);
|