Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update app/Actions/Application/CleanupPreviewDeployment.php

Andras Bacsai86a02a12e664
diff --git a/app/Actions/Application/CleanupPreviewDeployment.php b/app/Actions/Application/CleanupPreviewDeployment.php
index 83f7299597..74e2ff615f 100644
--- a/app/Actions/Application/CleanupPreviewDeployment.php
+++ b/app/Actions/Application/CleanupPreviewDeployment.php
@@ -157,8 +157,9 @@ class CleanupPreviewDeployment
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++;