From eb8abcfe63d33a52f107fa593ace3bb8f7f68d57 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sat, 24 Jan 2026 16:35:14 +0530 Subject: [PATCH] fix: empty input considered as invalid. fix: referencing wrong file in upgrade task. --- src/Appwrite/Platform/Installer/HttpHandler.php | 2 +- src/Appwrite/Platform/Tasks/Upgrade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Installer/HttpHandler.php b/src/Appwrite/Platform/Installer/HttpHandler.php index d26ad6628f..dd11c81690 100644 --- a/src/Appwrite/Platform/Installer/HttpHandler.php +++ b/src/Appwrite/Platform/Installer/HttpHandler.php @@ -233,7 +233,7 @@ class HttpHandler $rawBody = file_get_contents('php://input'); $input = json_decode($rawBody, true); - if (!$input) { + if (!is_array($input)) { http_response_code(400); echo json_encode(['success' => false, 'message' => 'Invalid request']); return true; diff --git a/src/Appwrite/Platform/Tasks/Upgrade.php b/src/Appwrite/Platform/Tasks/Upgrade.php index cddd3d0276..f35ba1b59f 100644 --- a/src/Appwrite/Platform/Tasks/Upgrade.php +++ b/src/Appwrite/Platform/Tasks/Upgrade.php @@ -44,7 +44,7 @@ class Upgrade extends Install Console::log('Please navigate to the parent directory of the Appwrite installation and try again.'); Console::log(' parent_directory <= you run the command in this directory'); Console::log(' └── appwrite'); - Console::log(' └── docker-compose.yml'); + Console::log(' └── ' . $this->getComposeFileName()); return; }