mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
check for blacklisted file certificate filenames
This commit is contained in:
parent
2fcedcc503
commit
e64aa330fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue