Increase the arbitrarily low max-input-length limit. Closes #1416.

This commit is contained in:
Kailash Nadh 2023-08-03 23:52:20 +05:30
parent dcb87a39b7
commit 2215511f2c
2 changed files with 1 additions and 5 deletions

View file

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

View file

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