Skip to content
Snippets Groups Projects
Commit e64aa330 authored by Robin Appelman's avatar Robin Appelman
Browse files

check for blacklisted file certificate filenames

parent 2fcedcc5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment