on main help sign in
fix(sec): do not output resolved command (#1934)
b66676cCarlos Alexandro Becker
internal/shell/shell.go+1−1
@@ -227,7 +227,7 @@ func (s *Shell) blockHandler() func(next interp.ExecHandlerFunc) interp.ExecHand
227
227
228 for _, blockFunc := range s.blockFuncs {
228 for _, blockFunc := range s.blockFuncs {
229 if blockFunc(args) {
229 if blockFunc(args) {
230− return fmt.Errorf("command is not allowed for security reasons: %s", strings.Join(args, " "))
230+ return fmt.Errorf("command is not allowed for security reasons: %q", args[0])
231 }
231 }
232 }
232 }
233
233