fix read poll option

This commit is contained in:
localhost_frssoft 2023-11-11 00:18:45 +03:00
parent 4c0c1c40a8
commit 58a2a1748e

View file

@ -328,7 +328,7 @@ func NewHandler(s *service, verbose bool, staticDir string) http.Handler {
scheduledAt = string(scheduled.UTC().Format(time.RFC3339))
}
var pollOptions []string
for i := 0; i < 16; i++ {
for i := 0; i < 20; i++ {
v := c.r.FormValue(fmt.Sprintf("poll-option-%d", i))
if len(v) == 0 {
continue