mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 06:17:36 +00:00
Validate environment variable keys
This commit is contained in:
1 parent
3f0a0f7a0d
commit
87d4744390
9 files changed
+221
-30
No files matched your search
@@ -1363,7 +1363,7 @@ function generateDockerBuildArgs($variables): Collection
|
||||
$key = is_array($var) ? data_get($var, 'key') : $var->key;
|
||||
|
||||
// Only return the key - Docker will get the value from the environment
|
||||
return "--build-arg {$key}";
|
||||
return '--build-arg '.escapeshellarg((string) $key);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user