mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-06 17:48:46 +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)
|
const joinedSecrets = Object.entries(secrets)
|
||||||
.map(([key, value]) => `${key}='${value}'`)
|
.map(([key, value]) => `${key}='${value.replace(/'/g, "'\"'\"'")}'`)
|
||||||
.join(" ");
|
.join(" ");
|
||||||
|
|
||||||
for (const key in secrets) {
|
for (const key in secrets) {
|
||||||
|
|||||||
Reference in New Issue
Block a user