From 86a02a12e664c7e1c737978240fa71fda495362b Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:35:13 +0100 Subject: [PATCH] Update app/Actions/Application/CleanupPreviewDeployment.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/Actions/Application/CleanupPreviewDeployment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Actions/Application/CleanupPreviewDeployment.php b/app/Actions/Application/CleanupPreviewDeployment.php index 83f729959..74e2ff615 100644 --- a/app/Actions/Application/CleanupPreviewDeployment.php +++ b/app/Actions/Application/CleanupPreviewDeployment.php @@ -157,8 +157,9 @@ private function stopRunningContainers( foreach ($containers as $container) { $containerName = data_get($container, 'Names'); if ($containerName) { + $escapedContainerName = escapeshellarg($containerName); instant_remote_process( - ["docker rm -f $containerName"], + ["docker rm -f {$escapedContainerName}"], $server ); $killed++;