fix: [server] Allow certificates to be uploaded with other extensions besides .pem, fixes #3797

pull/3816/head
iglocska 2018-10-26 21:13:59 +02:00
parent 13974fb206
commit 168fd9f3b0
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}