fix(service): save switches without saving pending Compose edits (#11985)

This commit is contained in:
Andras Bacsai
2026-09-24 13:43:37 +02:00
committed by GitHub
parent 803cea718b
commit 3f47bae0b6
12 changed files with 359 additions and 18 deletions
@@ -696,8 +696,7 @@ class ServicesController extends Controller
],
], 422);
}
$dockerCompose = base64_decode($request->docker_compose_raw);
$dockerComposeRaw = Yaml::dump(Yaml::parse($dockerCompose), 10, 2, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK);
Yaml::parse($dockerComposeRaw);
// Validate for command injection BEFORE saving to database
try {
@@ -1243,8 +1242,7 @@ class ServicesController extends Controller
],
], 422);
}
$dockerCompose = base64_decode($request->docker_compose_raw);
$dockerComposeRaw = Yaml::dump(Yaml::parse($dockerCompose), 10, 2, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK);
Yaml::parse($dockerComposeRaw);
// Validate for command injection BEFORE saving to database
try {