Prevent adding an empty recipient (#1448)

pull/1472/head
David Maciejak 2019-05-31 00:46:45 +08:00 committed by Jordan Wright
parent 27553ccc1f
commit de21f608d6
1 changed files with 3 additions and 0 deletions

View File

@ -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 {