summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-11-24 19:18:35 -0500
committerDavid Rothstein <drothstein@gmail.com>2014-11-24 19:18:35 -0500
commitde8762b201863542b1867737997a45c7100b8f2f (patch)
tree65daec8aba2a036214cc90deef348820be11c994 /modules/contact
parent84092f3d051c7d8904a63d38c81eb5f671b6e71b (diff)
downloadbrdo-de8762b201863542b1867737997a45c7100b8f2f.tar.gz
brdo-de8762b201863542b1867737997a45c7100b8f2f.tar.bz2
Issue #2380143 by Lendude, pwolanin: Contact forms set an incorrect name and e-mail address on the global user object after the form is submitted.
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc
index ba8918bf5..233818ce5 100644
--- a/modules/contact/contact.pages.inc
+++ b/modules/contact/contact.pages.inc
@@ -134,7 +134,7 @@ function contact_site_form_submit($form, &$form_state) {
global $user, $language;
$values = $form_state['values'];
- $values['sender'] = $user;
+ $values['sender'] = clone $user;
$values['sender']->name = $values['name'];
$values['sender']->mail = $values['mail'];
$values['category'] = contact_load($values['cid']);
@@ -270,7 +270,7 @@ function contact_personal_form_submit($form, &$form_state) {
global $user, $language;
$values = $form_state['values'];
- $values['sender'] = $user;
+ $values['sender'] = clone $user;
$values['sender']->name = $values['name'];
$values['sender']->mail = $values['mail'];