From 1bc733627a355249d7200dbdd1c84ad83d53300d Mon Sep 17 00:00:00 2001 From: Ben Leggett Date: Wed, 4 Apr 2018 15:50:06 -0400 Subject: [PATCH] EmailMessageByLink should be limited to 20k characters --- aws/validators.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws/validators.go b/aws/validators.go index a20a0321941..3fcbdb1b444 100644 --- a/aws/validators.go +++ b/aws/validators.go @@ -1245,8 +1245,8 @@ func validateCognitoUserPoolTemplateEmailMessageByLink(v interface{}, k string) es = append(es, fmt.Errorf("%q cannot be less than 1 character", k)) } - if len(value) > 140 { - es = append(es, fmt.Errorf("%q cannot be longer than 140 characters", k)) + if len(value) > 20000 { + es = append(es, fmt.Errorf("%q cannot be longer than 20000 characters", k)) } if !regexp.MustCompile(`[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*\{##[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*##\}[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*`).MatchString(value) {