mirror of
https://github.com/knadh/listmonk.git
synced 2025-01-15 19:00:45 +08:00
Increase the arbitrarily low max-input-length limit. Closes #1416.
This commit is contained in:
parent
dcb87a39b7
commit
2215511f2c
2 changed files with 1 additions and 5 deletions
|
@ -538,10 +538,6 @@ func validateCampaignFields(c campaignReq, app *App) (campaignReq, error) {
|
||||||
return c, errors.New(app.i18n.T("campaigns.fieldInvalidSubject"))
|
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 there's a "send_at" date, it should be in the future.
|
||||||
if c.SendAt.Valid {
|
if c.SendAt.Valid {
|
||||||
if c.SendAt.Time.Before(time.Now()) {
|
if c.SendAt.Time.Before(time.Now()) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// stdInputMaxLen is the maximum allowed length for a standard input field.
|
// stdInputMaxLen is the maximum allowed length for a standard input field.
|
||||||
stdInputMaxLen = 200
|
stdInputMaxLen = 2000
|
||||||
|
|
||||||
sortAsc = "asc"
|
sortAsc = "asc"
|
||||||
sortDesc = "desc"
|
sortDesc = "desc"
|
||||||
|
|
Loading…
Reference in a new issue