mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-29 08:12:15 +00:00
fix(docker): escape single quotes in secret values for Docker command
This commit is contained in:
@@ -151,7 +151,7 @@ export const getDockerCommand = (
|
||||
);
|
||||
|
||||
const joinedSecrets = Object.entries(secrets)
|
||||
.map(([key, value]) => `${key}='${value}'`)
|
||||
.map(([key, value]) => `${key}='${value.replace(/'/g, "'\"'\"'")}'`)
|
||||
.join(" ");
|
||||
|
||||
for (const key in secrets) {
|
||||
|
||||
Reference in New Issue
Block a user