From 2215511f2c173a150123560324b5ce50e54cad7f Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Thu, 3 Aug 2023 23:52:20 +0530 Subject: [PATCH] Increase the arbitrarily low max-input-length limit. Closes #1416. --- cmd/campaigns.go | 4 ---- cmd/handlers.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/campaigns.go b/cmd/campaigns.go index 01918397..517b989a 100644 --- a/cmd/campaigns.go +++ b/cmd/campaigns.go @@ -538,10 +538,6 @@ func validateCampaignFields(c campaignReq, app *App) (campaignReq, error) { return c, errors.New(app.i18n.T("campaigns.fieldInvalidSubject")) } - // if !hasLen(c.Body, 1, bodyMaxLen) { - // return c,errors.New("invalid length for `body`") - // } - // If there's a "send_at" date, it should be in the future. if c.SendAt.Valid { if c.SendAt.Time.Before(time.Now()) { diff --git a/cmd/handlers.go b/cmd/handlers.go index 35008e0f..0f3aaa8d 100644 --- a/cmd/handlers.go +++ b/cmd/handlers.go @@ -13,7 +13,7 @@ import ( const ( // stdInputMaxLen is the maximum allowed length for a standard input field. - stdInputMaxLen = 200 + stdInputMaxLen = 2000 sortAsc = "asc" sortDesc = "desc"