diff options
author | INOPIAE <inopiae@cacert.org> | 2012-12-10 21:27:36 +0100 |
---|---|---|
committer | INOPIAE <inopiae@cacert.org> | 2012-12-10 21:27:36 +0100 |
commit | 002a2f126180ca96a3cd1365306747b0b6a55108 (patch) | |
tree | 358855708988a09e89277c0fb690c2fd3c938f02 /www | |
parent | 31ce1742e5f4137878ce931c3b5ad3da726a62df (diff) | |
download | cacert-devel-002a2f126180ca96a3cd1365306747b0b6a55108.tar.gz cacert-devel-002a2f126180ca96a3cd1365306747b0b6a55108.tar.xz cacert-devel-002a2f126180ca96a3cd1365306747b0b6a55108.zip |
bug 795: correted robotest if functionality
Diffstat (limited to 'www')
-rw-r--r-- | www/index.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/www/index.php b/www/index.php index 4d2e774..4d45473 100644 --- a/www/index.php +++ b/www/index.php @@ -563,14 +563,15 @@ require_once('../includes/lib/l10n.php'); $subject = stripslashes($_REQUEST['subject']); $message = stripslashes($_REQUEST['message']); $secrethash = $_REQUEST['secrethash2']; - $robotest = $_REQUEST['robotest']; - + //check for spam via honeypot + if(!isset($_REQUEST['robotest']) || !empty($_REQUEST['robotest'])) //check for spam via honeypot if ($robotest!=""){ - - + echo _("Form could not be send."); + showfooter(); + exit; } - + if($_SESSION['_config']['secrethash'] != $secrethash || $secrethash == "" || $_SESSION['_config']['secrethash'] == "") { $id = $oldid; |