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.

Refactor shared.php to escape dollar signs in service labels

Andras Bacsaif98405188d62
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index eebaa4bce0..183d9d2ec5 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -1174,6 +1174,9 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
]
]);
}
+ $serviceLabels = $serviceLabels->map(function ($value, $key) {
+ return escapeDollarSign($value);
+ });
data_set($service, 'labels', $serviceLabels->toArray());
data_forget($service, 'is_database');
if (!data_get($service, 'restart')) {