Skip to content

Commit

Permalink
Increase the arbitrarily low max-input-length limit. Closes #1416.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Aug 3, 2023
1 parent dcb87a3 commit 2215511
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions cmd/campaigns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2215511

Please sign in to comment.