From ed5e3f2bda9b390eef5f9a40db1007acb0969a2c Mon Sep 17 00:00:00 2001 From: Shuki Vaknin Date: Wed, 11 Feb 2026 02:21:58 +0200 Subject: [PATCH] Fix import.start for PHP 8.4 escapeshellarg types --- bin/jabali-agent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/jabali-agent b/bin/jabali-agent index c0663d8..fa56f14 100755 --- a/bin/jabali-agent +++ b/bin/jabali-agent @@ -13021,7 +13021,7 @@ function discoverDirectAdminRemote(string $host, int $port, string $user, string */ function importStart(array $params): array { - $importId = $params['import_id'] ?? 0; + $importId = (int) ($params['import_id'] ?? 0); logger("Starting import process for import ID: $importId"); @@ -13035,7 +13035,7 @@ function importStart(array $params): array } // Dispatch a Laravel job to handle the import in the background - $cmd = "cd /var/www/jabali && php artisan import:process " . escapeshellarg($importId) . " > /dev/null 2>&1 &"; + $cmd = "cd /var/www/jabali && php artisan import:process " . escapeshellarg((string) $importId) . " > /dev/null 2>&1 &"; exec($cmd); return ['success' => true, 'message' => 'Import process started'];