mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: empty input considered as invalid.
fix: referencing wrong file in upgrade task.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user