Validate environment variable keys

This commit is contained in:
Andras Bacsai committed 2026-06-25 18:19:58 +02:00
1 parent 3f0a0f7a0d
commit 87d4744390
9 files changed
+221 -30

No files matched your search

+1 -1
View File
@@ -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);
});
}