mirror of https://github.com/MISP/MISP
fix: [audit] Better path to cake version file
parent
74acfacde0
commit
ab37b355dd
|
@ -476,7 +476,7 @@ class SecurityAudit
|
|||
*/
|
||||
private function getCakeVersion()
|
||||
{
|
||||
$filePath = APP . 'Lib/cakephp/lib/Cake/VERSION.txt';
|
||||
$filePath = CAKE_CORE_INCLUDE_PATH . '/Cake/VERSION.txt';
|
||||
$version = file_get_contents($filePath);
|
||||
if (!$version) {
|
||||
throw new RuntimeException("Could not open CakePHP version file '$filePath'.");
|
||||
|
|
Loading…
Reference in New Issue