From ab2be3eab038f3bd3e140a55c27725696b087d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 23 Jan 2020 14:51:06 -0500 Subject: [PATCH] commentsubmit: improve validation --- content/vendor/form-comments/commentsubmit.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php index 20c096a..39d81b4 100644 --- a/content/vendor/form-comments/commentsubmit.php +++ b/content/vendor/form-comments/commentsubmit.php @@ -52,13 +52,18 @@ if(empty($_POST['name']) || // Create the email and send the message // Add your email address - $to = 'heckyel@riseup.net'; + $recipients = array( + "heckyel@riseup.net", + "$email_address", + // more emails + ); + $to = implode(',', $recipients); $email_subject = <<