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
This commit is contained in:
Ed Kraus 2009-07-02 14:59:52 +00:00
parent 35ee83443f
commit dde658a977

View File

@ -35,6 +35,11 @@ if( !$email ) {
$errors[] = wrong_field("form.field.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 ) { if( count($errors) > 0 ) {
$page['formname'] = topage($visitor_name); $page['formname'] = topage($visitor_name);