diff --git a/libraries/src/Console/UpdateCoreCommand.php b/libraries/src/Console/UpdateCoreCommand.php index 985f697aa6076..542158be28768 100644 --- a/libraries/src/Console/UpdateCoreCommand.php +++ b/libraries/src/Console/UpdateCoreCommand.php @@ -227,7 +227,7 @@ private function updateJoomlaCore($updatemodel): bool // Remove the administrator/cache/autoload_psr4.php file $autoloadFile = JPATH_CACHE . '/autoload_psr4.php'; - if (File::exists($autoloadFile)) { + if (file_exists($autoloadFile)) { File::delete($autoloadFile); } diff --git a/libraries/src/Installer/InstallerHelper.php b/libraries/src/Installer/InstallerHelper.php index f32adc93204ab..84af3cf811515 100644 --- a/libraries/src/Installer/InstallerHelper.php +++ b/libraries/src/Installer/InstallerHelper.php @@ -118,8 +118,11 @@ public static function downloadPackage($url, $target = false) $target = $tmpPath . '/' . basename($target); } + // Fix Indirect Modification of Overloaded Property + $body = $response->body; + // Write buffer to file - File::write($target, $response->body); + File::write($target, $body); // Restore error tracking to what it was before ini_set('track_errors', $track_errors);