From d04a3bb5c841fedc625ff048c70cad89a8ddb343 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 24 May 2018 12:03:08 +0200 Subject: [PATCH] Do not send google recaptcha response inside contact email message --- Changelog | 1 + app/Http/Controllers/ContactUsController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 8f28dca81..9a849ae0c 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-05-24 DariusIII + * Chg: Do not send google recaptcha response inside contact email message * Fix: Fix errors on no returned results in tvSearch 2018-05-23 DariusIII * Chg: Try to fix nzb file downloads that fail in nzbget diff --git a/app/Http/Controllers/ContactUsController.php b/app/Http/Controllers/ContactUsController.php index 335eb16a2..d54bbbd70 100644 --- a/app/Http/Controllers/ContactUsController.php +++ b/app/Http/Controllers/ContactUsController.php @@ -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; } }