From de21f608d6bff32e016fd6d7fff56faf62e0f145 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Fri, 31 May 2019 00:46:45 +0800 Subject: [PATCH] Prevent adding an empty recipient (#1448) --- util/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/util.go b/util/util.go index ac1db418..f91f6cfa 100644 --- a/util/util.go +++ b/util/util.go @@ -86,6 +86,9 @@ func ParseCSV(r *http.Request) ([]models.Target, error) { pi = i } } + if fi == -1 && li == -1 && ei == -1 && pi == -1 { + continue + } for { record, err := reader.Read() if err == io.EOF {