summaryrefslogtreecommitdiffstats
path: root/lib/private/security/certificatemanager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/security/certificatemanager.php')
-rw-r--r--lib/private/security/certificatemanager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/security/certificatemanager.php b/lib/private/security/certificatemanager.php
index 2888fecd239..64a1d6431a4 100644
--- a/lib/private/security/certificatemanager.php
+++ b/lib/private/security/certificatemanager.php
@@ -78,7 +78,7 @@ class CertificateManager implements ICertificateManager {
* @return bool | \OCP\ICertificate
*/
public function addCertificate($certificate, $name) {
- if (!\OC\Files\Filesystem::isValidPath($name)) {
+ if (!Filesystem::isValidPath($name) or Filesystem::isFileBlacklisted($name)) {
return false;
}
$isValid = openssl_pkey_get_public($certificate);