From b95eab3836a5810fc5800a693b011974bf799dad Mon Sep 17 00:00:00 2001
From: Joey Schulze
Date: Sun, 20 Jul 2008 16:21:13 +0000
Subject: [PATCH] Renamed email to ess to confuse spammers
---
src/kontaktform.html.wml | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/kontaktform.html.wml b/src/kontaktform.html.wml
index 6be8b77..5803adc 100644
--- a/src/kontaktform.html.wml
+++ b/src/kontaktform.html.wml
@@ -9,8 +9,8 @@
include_once('/org/zeitungsliste.de/lib/extern/rfc822.php');
if (isset($_POST['function']) && $_POST['function'] == 'checkmail') {
- if (isset($_POST['email']) && !empty($_POST['email'])) {
- if (is_valid_email_address($_POST['email'])) {
+ if (isset($_POST['ess']) && !empty($_POST['ess'])) {
+ if (is_valid_email_address($_POST['ess'])) {
echo json_encode(true) . "\n";
exit;
}
@@ -21,11 +21,11 @@
if (!isset($_POST['name']) || empty($_POST['name']))
$error = "";
- elseif (!isset($_POST['email']) || empty($_POST['email']))
+ elseif (!isset($_POST['ess']) || empty($_POST['ess']))
$error = "";
elseif (!isset($_POST['content']) || empty($_POST['content']))
$error = "";
- elseif (!is_valid_email_address($_POST['email']))
+ elseif (!is_valid_email_address($_POST['ess']))
$error = "";
else {
$form = false;
@@ -44,7 +44,7 @@
$body = "Subject : " . $_POST['subject'] . "\n";
$body .= "Name : " . $_POST['name'] . "\n"
- ."E-Mail : " . $_POST['email'] . "\n"
+ ."E-Mail : " . $_POST['ess'] . "\n"
."\n"
."Inhalt:\n"
. $_POST['content']
@@ -163,13 +163,13 @@ function check()
if (!form.name.value.length)
return info("");
- if (!form.email.value.length)
+ if (!form.ess.value.length)
return info("");
if (!form.content.value.length)
return info("");
- if (!check_email(form.email.value))
+ if (!check_email(form.ess.value))
return info("");
return true;
@@ -190,8 +190,8 @@ Mail-Adresse beinhalten.
-
-
+
+
--
2.20.1