Skip to content

Commit

Permalink
Contact Form: adjust wording for filter description. (#20979)
Browse files Browse the repository at this point in the history
* Contact Form: adjust wording for filter description.

One can use this filter to automatically set up cc or bcc for all contact forms on the site, based on data submitted by site visitors.
See the description in #20912 for an example.

Let's make it clear that by doing so, you're allowing visitors to send emails to any email address they want.

* Update projects/plugins/jetpack/modules/contact-form/grunion-contact-form.php

Co-authored-by: Brad Jorsch <[email protected]>

Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
jeherve and anomiex authored Sep 8, 2021
1 parent 8f30c2c commit 84ac01a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Form: adjust wording for filter description.


Original file line number Diff line number Diff line change
Expand Up @@ -2889,6 +2889,12 @@ function process_submission() {
/**
* Allow customizing the email headers.
*
* Warning: DO NOT add headers or header data from the form submission without proper
* escaping and validation, or you're liable to allow abusers to use your site to send spam.
*
* Especially DO NOT take email addresses from the form data to add as CC or BCC headers
* without strictly validating each address against a list of allowed addresses.
*
* @module contact-form
*
* @since 10.2.0
Expand Down

0 comments on commit 84ac01a

Please sign in to comment.