From 53a8c36859e03a2a8bb6623664dbd8339c0cce1d Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Mon, 17 Sep 2012 08:46:43 +0000 Subject: [PATCH] Fix for https://bugs.cacert.org/view.php?id=1019 "Contact form does not work when logged in!" --- pages/account/40.php | 14 ++------------ pages/index/11.php | 4 ++-- www/account.php | 2 +- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/pages/account/40.php b/pages/account/40.php index fa0c52f..b1a7fdb 100644 --- a/pages/account/40.php +++ b/pages/account/40.php @@ -19,15 +19,6 @@ if(!array_key_exists('secrethash',$_SESSION['_config'])) $_SESSION['_config']['s ?>

-

support@cacert.org" - ) ?> -

- -

@@ -36,7 +27,7 @@ if(!array_key_exists('secrethash',$_SESSION['_config'])) $_SESSION['_config']['s

-
+ @@ -61,7 +52,7 @@ if(!array_key_exists('secrethash',$_SESSION['_config'])) $_SESSION['_config']['s

- + @@ -98,4 +89,3 @@ Australia

document.form2.secrethash2.value = pagehash; --> -*/ diff --git a/pages/index/11.php b/pages/index/11.php index 8391903..60c8941 100644 --- a/pages/index/11.php +++ b/pages/index/11.php @@ -27,7 +27,7 @@ if(!array_key_exists('secrethash',$_SESSION['_config'])) $_SESSION['_config']['s

- + @@ -52,7 +52,7 @@ if(!array_key_exists('secrethash',$_SESSION['_config'])) $_SESSION['_config']['s

- +
diff --git a/www/account.php b/www/account.php index d1dd695..0b32c2c 100644 --- a/www/account.php +++ b/www/account.php @@ -47,7 +47,7 @@ $message = "From: $who\nEmail: $email\nSubject: $subject\n\nMessage:\n".$message; - sendmail("cacert-support@lists.cacert.org, $email", "[website form email]: ".$subject, $message, "website-form@cacert.org", "cacert-support@lists.cacert.org, $email", "", "CAcert Website"); + sendmail("cacert-support@lists.cacert.org", "[website form email]: ".$subject, $message, "website-form@cacert.org", "cacert-support@lists.cacert.org, $email", "", "CAcert Website"); showheader(_("Welcome to CAcert.org")); echo _("Your message has been sent to the general support list.");