fix: correctly check if command is allowed when using shell

This commit is contained in:
Henrique Dias
2025-06-26 21:09:16 +02:00
parent f84a6db680
commit 4d830f707f
4 changed files with 25 additions and 34 deletions

View File

@@ -60,7 +60,7 @@ func (r *Runner) exec(raw, evt, path, dst string, user *users.User) error {
raw = strings.TrimSpace(strings.TrimSuffix(raw, "&"))
}
command, err := ParseCommand(r.Settings, raw)
command, _, err := ParseCommand(r.Settings, raw)
if err != nil {
return err
}