summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-08-14 15:47:23 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-31 10:45:11 +0200
commitdcc4f96d3e368ee976cd085c18dcb74ada3617ce (patch)
tree267b8bbf66ec4cc3b1201c4a3f6229f24b1df9fb /apps/files_external/ajax
parentc2ebc192a6a6c7cb9cff958e412e0cc4aff15ead (diff)
downloadnextcloud-server-dcc4f96d3e368ee976cd085c18dcb74ada3617ce.tar.gz
nextcloud-server-dcc4f96d3e368ee976cd085c18dcb74ada3617ce.zip
Verify names of certificates
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r--apps/files_external/ajax/removeRootCertificate.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_external/ajax/removeRootCertificate.php b/apps/files_external/ajax/removeRootCertificate.php
index e6795800e03..0931138ad4b 100644
--- a/apps/files_external/ajax/removeRootCertificate.php
+++ b/apps/files_external/ajax/removeRootCertificate.php
@@ -6,6 +6,4 @@ OCP\JSON::callCheck();
$name = $_POST['cert'];
$certificateManager = \OC::$server->getCertificateManager();
-if (\OC\Files\Filesystem::isValidPath($name)) {
- $certificateManager->removeCertificate($name);
-}
+$certificateManager->removeCertificate($name);