Skip to content

Commit 4d87cad

Browse files
committedAug 3, 2023
Increase the arbitrarily low max-input-length limit. Closes knadh#1416.
1 parent f1eb7a8 commit 4d87cad

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎cmd/campaigns.go

-4
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,6 @@ func validateCampaignFields(c campaignReq, app *App) (campaignReq, error) {
538538
return c, errors.New(app.i18n.T("campaigns.fieldInvalidSubject"))
539539
}
540540

541-
// if !hasLen(c.Body, 1, bodyMaxLen) {
542-
// return c,errors.New("invalid length for `body`")
543-
// }
544-
545541
// If there's a "send_at" date, it should be in the future.
546542
if c.SendAt.Valid {
547543
if c.SendAt.Time.Before(time.Now()) {

‎cmd/handlers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
const (
1515
// stdInputMaxLen is the maximum allowed length for a standard input field.
16-
stdInputMaxLen = 200
16+
stdInputMaxLen = 2000
1717

1818
sortAsc = "asc"
1919
sortDesc = "desc"

0 commit comments

Comments
 (0)
Please sign in to comment.