fix: shared env variable parsing

This commit is contained in:
Andras Bacsai
2024-03-20 16:41:10 +01:00
parent d9f1c2a406
commit 07c9db9b54
4 changed files with 7 additions and 7 deletions

View File

@@ -1367,7 +1367,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
// Old environment variables are not escaped, because it could break the application
// as the application could expect the unescaped value.
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}
@@ -1375,7 +1375,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
}
foreach ($this->application->nixpacks_environment_variables as $env) {
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}
@@ -1384,7 +1384,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} else {
foreach ($this->application->runtime_environment_variables_preview as $env) {
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}
@@ -1392,7 +1392,7 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
}
foreach ($this->application->nixpacks_environment_variables_preview as $env) {
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}