mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +00:00
fix(docker): ensure correct parsing of environment variables by limiting explode to 2 parts
This commit is contained in:
parent
e9dd170ffb
commit
698b090b4d
@ -99,7 +99,7 @@ function format_docker_envs_to_json($rawOutput)
|
||||
$outputLines = json_decode($rawOutput, true, flags: JSON_THROW_ON_ERROR);
|
||||
|
||||
return collect(data_get($outputLines[0], 'Config.Env', []))->mapWithKeys(function ($env) {
|
||||
$env = explode('=', $env);
|
||||
$env = explode('=', $env, 2);
|
||||
|
||||
return [$env[0] => $env[1]];
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user