diff --git a/administrator/components/com_joomlaupdate/extract.php b/administrator/components/com_joomlaupdate/extract.php index 25413750742e3..5baae94528604 100644 --- a/administrator/components/com_joomlaupdate/extract.php +++ b/administrator/components/com_joomlaupdate/extract.php @@ -1406,6 +1406,9 @@ private function processTypeFileUncompressed(): bool if ($this->dataReadLength == 0) { // Before processing file data, ensure permissions are adequate $this->setCorrectPermissions($this->fileHeader->file); + + // This file is changed during the script's operation so we clear the status cache. + clearstatcache($this->fileHeader->file); } // Open the output file @@ -1497,6 +1500,9 @@ private function processTypeFileCompressed(): bool // Before processing file data, ensure permissions are adequate $this->setCorrectPermissions($this->fileHeader->file); + // This file is changed during the script's operation so we clear the status cache. + clearstatcache($this->fileHeader->file); + // Open the output file $outfp = @fopen($this->fileHeader->realFile, 'wb');