mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 18:15:58 +00:00
fix(env): Generate literal env variables better
This commit is contained in:
1 parent
a7aac19267
commit
6a90bdf9fa
4 files changed
+20
-42
No files matched your search
@@ -118,7 +118,14 @@ class EnvironmentVariable extends BaseModel
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->get_real_environment_variables($this->value, $resource);
|
||||
$real_value = $this->get_real_environment_variables($this->value, $resource);
|
||||
if ($this->is_literal || $this->is_multiline) {
|
||||
$real_value = '\''.$real_value.'\'';
|
||||
} else {
|
||||
$real_value = escapeEnvVariables($real_value);
|
||||
}
|
||||
|
||||
return $real_value;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user