From dde658a977999b2e88ff5f41eb9dded511b3a092 Mon Sep 17 00:00:00 2001 From: Ed Kraus Date: Thu, 2 Jul 2009 14:59:52 +0000 Subject: [PATCH] Fix for the captcha, forgot to add this ;) git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@566 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/leavemessage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/messenger/webim/leavemessage.php b/src/messenger/webim/leavemessage.php index 922707da..ac28ce1a 100644 --- a/src/messenger/webim/leavemessage.php +++ b/src/messenger/webim/leavemessage.php @@ -35,6 +35,11 @@ if( !$email ) { $errors[] = wrong_field("form.field.email"); } } +if ( ($_REQUEST["txtCaptcha"] == $_SESSION["security_code"]) && + (!empty($_REQUEST["txtCaptcha"]) && !empty($_SESSION["security_code"])) ) { +} else { + $errors[] = no_field('errors.captcha'); +} if( count($errors) > 0 ) { $page['formname'] = topage($visitor_name);