mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Merge pull request #4047 from Serios/patch-14
Fixing an issue that with contact form sending unnecessary additional…
This commit is contained in:
@@ -191,7 +191,7 @@ if(isset($_POST['send-contactus']))
|
|||||||
|
|
||||||
$CONTACT_EMAIL = e107::getCoreTemplate('contact','email');
|
$CONTACT_EMAIL = e107::getCoreTemplate('contact','email');
|
||||||
|
|
||||||
unset($_POST['contact_person'], $_POST['author_name'], $_POST['email_send'] , $_POST['subject'], $_POST['body'], $_POST['rand_num'], $_POST['code_verify'], $_POST['send-contactus']);
|
unset($_POST['contact_person'], $_POST['author_name'], $_POST['email_send'] , $_POST['subject'], $_POST['body'], $_POST['rand_num'], $_POST['code_verify'], $_POST['send-contactus'], $_POST['g-recaptcha-response'], $_POST['gdpr']);
|
||||||
|
|
||||||
if(!empty($_POST)) // support for custom fields in contact template.
|
if(!empty($_POST)) // support for custom fields in contact template.
|
||||||
{
|
{
|
||||||
@@ -293,4 +293,4 @@ elseif($active == e_UC_MEMBER && ($pref['sitecontacts'] != e_UC_NOBODY))
|
|||||||
|
|
||||||
require_once(FOOTERF);
|
require_once(FOOTERF);
|
||||||
exit;
|
exit;
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user