fix: correctly check if command is allowed when using shell

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

No files matched your search

+1 -1
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
}