mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 19:21:36 +00:00
Update bootstrap/helpers/docker.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1182,6 +1182,10 @@ function escapeBashDoubleQuoted(?string $value): string
|
||||
$escaped
|
||||
);
|
||||
|
||||
// Preserve pre-escaped dollars inside double quotes: turn \\$ back into \$
|
||||
// (keeps tests like "path\\to\\file" intact while restoring \$ semantics)
|
||||
$escaped = preg_replace('/\\\\(?=\$)/', '\\\\', $escaped);
|
||||
|
||||
// Wrap in double quotes
|
||||
return "\"{$escaped}\"";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user