mirror of https://github.com/MISP/MISP
fix: [server] Allow certificates to be uploaded with other extensions besides .pem, fixes #3797
parent
13974fb206
commit
168fd9f3b0
|
@ -751,7 +751,7 @@ class ServersController extends AppController
|
|||
}
|
||||
$file = new File($server['Server'][$subm]['name']);
|
||||
$ext = $file->ext();
|
||||
if (($ext != 'pem') || !$server['Server'][$subm]['size'] > 0) {
|
||||
if (!$server['Server'][$subm]['size'] > 0) {
|
||||
$this->Flash->error('Incorrect extension or empty file.');
|
||||
$this->redirect(array('action' => 'index'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue