fix: trim whitespace from command in ExecComposer method (#12290)

This commit is contained in:
KOMATA
2026-03-23 15:47:31 +08:00
committed by GitHub
parent 5a80931a49
commit c10e5747b0
+1
View File
@@ -2322,6 +2322,7 @@ func (w WebsiteService) ExecComposer(req request.ExecComposerReq) error {
} else {
command = req.ExtCommand
}
command = strings.TrimSpace(command)
resourceName := fmt.Sprintf("composer %s", command)
composerTask, err := task.NewTaskWithOps(resourceName, task.TaskExec, req.Command, req.TaskID, website.ID)
if err != nil {