Do not send google recaptcha response inside contact email message

This commit is contained in:
DariusIII
2018-05-24 12:03:08 +02:00
parent 63ed74f6c5
commit d04a3bb5c8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class ContactUsController extends BasePageController
$mailBody = 'Values submitted from contact form: ';
foreach ($request->all() as $key => $value) {
if ($key !== 'submit' && $key !== '_token') {
if ($key !== 'submit' && $key !== '_token' && $key !== 'g-recaptcha-response') {
$mailBody .= "$key : $value".PHP_EOL;
}
}