bug 795: correted robotest if functionality
authorINOPIAE <inopiae@cacert.org>
Mon, 10 Dec 2012 20:27:36 +0000 (21:27 +0100)
committerINOPIAE <inopiae@cacert.org>
Mon, 10 Dec 2012 20:27:36 +0000 (21:27 +0100)
www/index.php

index 4d2e774..4d45473 100644 (file)
@@ -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;