Submitting fields that are not allowed should result in a validation error #218
Unanswered
MoritzLost
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I like the new
allowedMessageFields
setting to limit what fields are allowed to be sent. But I've noticed that instead of adding validation so that submitting a form with illegal fields will be prevented, the mailer just silently omits every field from the HTML email body that isn't allowed. So a bad actor can still tamper with the form and successfully submit it. This is troublesome for some reasons:Can the implementation of this feature be changed to add the
allowedMessageFields
rules as a validation rule to theSubmission
model instead?Steps to reproduce
allowedMessageFields
config to allow only some fields.message[illegalInput]
.illegalField
won't show up in the Email.Additional info
Beta Was this translation helpful? Give feedback.
All reactions