Commit 1a98fce9 authored by Dries's avatar Dries
Browse files

- Patch by Jeremy: fixed comment module glitch.

parent 27b50ef5
...@@ -102,7 +102,7 @@ function contact_mail_user() { ...@@ -102,7 +102,7 @@ function contact_mail_user() {
if (!$edit['subject']) { if (!$edit['subject']) {
form_set_error('subject', t('You must enter a subject.')); form_set_error('subject', t('You must enter a subject.'));
} }
form_validate($edit, $edit['mail'] . $user->name . $user->mail); form_validate($edit, $user->name . $user->mail);
if (!form_get_errors()) { if (!form_get_errors()) {
// Compose the body: // Compose the body:
...@@ -155,7 +155,7 @@ function contact_mail_user() { ...@@ -155,7 +155,7 @@ function contact_mail_user() {
$output .= form_textfield(t('Subject'), 'subject', $edit['subject'], 60, 50, NULL, NULL, TRUE); $output .= form_textfield(t('Subject'), 'subject', $edit['subject'], 60, 50, NULL, NULL, TRUE);
$output .= form_textarea(t('Message'), 'message', $edit['message'], 60, 15, NULL, NULL, TRUE); $output .= form_textarea(t('Message'), 'message', $edit['message'], 60, 15, NULL, NULL, TRUE);
$output .= form_checkbox(t('Send me a copy.'), 'copy', $edit['copy']); $output .= form_checkbox(t('Send me a copy.'), 'copy', $edit['copy']);
$output .= form_token($edit['mail'] . $user->name . $user->mail); $output .= form_token($user->name . $user->mail);
$output .= form_submit(t('Send e-mail')); $output .= form_submit(t('Send e-mail'));
$output = form($output); $output = form($output);
} }
......
...@@ -102,7 +102,7 @@ function contact_mail_user() { ...@@ -102,7 +102,7 @@ function contact_mail_user() {
if (!$edit['subject']) { if (!$edit['subject']) {
form_set_error('subject', t('You must enter a subject.')); form_set_error('subject', t('You must enter a subject.'));
} }
form_validate($edit, $edit['mail'] . $user->name . $user->mail); form_validate($edit, $user->name . $user->mail);
if (!form_get_errors()) { if (!form_get_errors()) {
// Compose the body: // Compose the body:
...@@ -155,7 +155,7 @@ function contact_mail_user() { ...@@ -155,7 +155,7 @@ function contact_mail_user() {
$output .= form_textfield(t('Subject'), 'subject', $edit['subject'], 60, 50, NULL, NULL, TRUE); $output .= form_textfield(t('Subject'), 'subject', $edit['subject'], 60, 50, NULL, NULL, TRUE);
$output .= form_textarea(t('Message'), 'message', $edit['message'], 60, 15, NULL, NULL, TRUE); $output .= form_textarea(t('Message'), 'message', $edit['message'], 60, 15, NULL, NULL, TRUE);
$output .= form_checkbox(t('Send me a copy.'), 'copy', $edit['copy']); $output .= form_checkbox(t('Send me a copy.'), 'copy', $edit['copy']);
$output .= form_token($edit['mail'] . $user->name . $user->mail); $output .= form_token($user->name . $user->mail);
$output .= form_submit(t('Send e-mail')); $output .= form_submit(t('Send e-mail'));
$output = form($output); $output = form($output);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment