mirror of https://github.com/MISP/MISP
Merge branch 'develop' into 2.4
commit
b00711ee2f
2
PyMISP
2
PyMISP
|
@ -1 +1 @@
|
|||
Subproject commit 8b66d5f75346271c78d4737f79fb302e17c961d2
|
||||
Subproject commit d991e53f9a9641f454e116e83d2913edf405a53f
|
|
@ -34,7 +34,7 @@ class AppController extends Controller
|
|||
public $helpers = array('OrgImg', 'FontAwesome', 'UserName');
|
||||
|
||||
private $__queryVersion = '135';
|
||||
public $pyMispVersion = '2.4.151';
|
||||
public $pyMispVersion = '2.4.152';
|
||||
public $phpmin = '7.2';
|
||||
public $phprec = '7.4';
|
||||
public $phptoonew = '8.0';
|
||||
|
|
|
@ -461,13 +461,16 @@ class SecurityAudit
|
|||
if (PHP_OS !== 'Linux') {
|
||||
return false;
|
||||
}
|
||||
|
||||
$version = php_uname('v');
|
||||
if (substr($version, 0, 7) !== '#1 SMP ') {
|
||||
return false;
|
||||
}
|
||||
$buildTime = substr($version, 7);
|
||||
return new DateTime($buildTime);
|
||||
$buildTime = strtotime(substr($version, 7));
|
||||
if ($buildTime) {
|
||||
return new DateTime($buildTime);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private function getLinuxVersion()
|
||||
|
|
Loading…
Reference in New Issue