Refactor shared.php to escape dollar signs in service labels

This commit is contained in:
Andras Bacsai 2024-05-15 15:45:56 +02:00
parent a5cf24773c
commit f98405188d

View File

@ -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')) {