mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
chore(display): disable restricted shell
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ func shellCommandRoute(ctx echo.Context) error {
|
||||
return ctx.JSON(http.StatusBadRequest, ErrorResponse{Error: "Invalid JSON request"})
|
||||
}
|
||||
|
||||
cmd := exec.Command("bash", "-c", "-r", commandInput.Command)
|
||||
cmd := exec.Command("bash", "-c", commandInput.Command)
|
||||
storagePath, err := pkg.GetStoragePath()
|
||||
if err != nil {
|
||||
slog.Error("Failed to get storage path", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user