fix: [audit] Better path to cake version file

pull/7352/head
Jakub Onderka 2021-04-19 13:24:30 +02:00
parent 74acfacde0
commit ab37b355dd
1 changed files with 1 additions and 1 deletions

View File

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