From 760e2eb1d01edc49086fc0112fe9c9af0fa81ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 9 Jan 2022 11:19:47 +0100 Subject: [PATCH] md5_file --- core/module/install/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index a4a3e0a7..a723b09d 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -200,8 +200,9 @@ class install extends common { //$newVersion = helper::urlGetContents('https://zwiicms.fr/update/' . common::ZWII_UPDATE_CHANNEL . '/version'); file_put_contents(self::TEMP_DIR.'update.tar.gz', helper::urlGetContents(common::ZWII_UPDATE_URL . common::ZWII_UPDATE_CHANNEL . '/update.tar.gz')); $md5a = helper::urlGetContents(common::ZWII_UPDATE_URL . common::ZWII_UPDATE_CHANNEL . '/update.md5'); - $md5b = md5_file(self::TEMP_DIR.'update.md5'); + $md5b = md5_file(self::TEMP_DIR.'update.tar.gz'); $success = $md5a === $md5b; + die(); // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_JSON,