feat: webtrees docker build setup with patched PHP 8.4.26 (CVE-2026-109618 / CVE-2026-109619)

This commit is contained in:
2026-10-21 20:55:55 +02:00
parent 83e64a0d5d
commit 1080424e4c
10 changed files with 937 additions and 5 deletions
+39
View File
@@ -0,0 +1,39 @@
diff --git "a/.\\UpgradeService.php" "b/.\\UpgradeServicePatched.php"
index b69bea0..c3e682c 100644
--- "a/.\\UpgradeService.php"
+++ "b/.\\UpgradeServicePatched.php"
@@ -339,34 +339,6 @@ class UpgradeService
*/
private function fetchLatestVersion(bool $force): string
{
- $last_update_timestamp = (int) Site::getPreference('LATEST_WT_VERSION_TIMESTAMP');
-
- $current_timestamp = time();
-
- if ($force || $last_update_timestamp < $current_timestamp - self::CHECK_FOR_UPDATE_INTERVAL) {
- try {
- $client = new Client([
- 'timeout' => self::HTTP_TIMEOUT,
- ]);
-
- $response = $client->get(self::UPDATE_URL, [
- 'query' => $this->serverParameters(),
- ]);
-
- if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) {
- Site::setPreference('LATEST_WT_VERSION', $response->getBody()->getContents());
- Site::setPreference('LATEST_WT_VERSION_TIMESTAMP', (string) $current_timestamp);
- Site::setPreference('LATEST_WT_VERSION_ERROR', '');
- } else {
- Site::setPreference('LATEST_WT_VERSION_ERROR', 'HTTP' . $response->getStatusCode());
- }
- } catch (GuzzleException $ex) {
- // Can't connect to the server?
- // Use the existing information about latest versions.
- Site::setPreference('LATEST_WT_VERSION_ERROR', $ex->getMessage());
- }
- }
-
return Site::getPreference('LATEST_WT_VERSION');
}